[mythtv-commits] Ticket #6588: frontend segfault if QUERY_LOAD or QUERY_MEMSTATS fail

MythTV mythtv at cvs.mythtv.org
Fri May 29 21:16:53 UTC 2009


#6588: frontend segfault if QUERY_LOAD or QUERY_MEMSTATS fail
----------------------------------------+-----------------------------------
 Reporter:  Jeff Lu <jll544 at yahoo.com>  |       Owner:  ijr    
     Type:  patch                       |      Status:  new    
 Priority:  minor                       |   Milestone:  unknown
Component:  MythTV - General            |     Version:  head   
 Severity:  medium                      |     Mlocked:  0      
----------------------------------------+-----------------------------------
 If QUERY_LOAD or QUERY_MEMSTATS fail for some reason, backend sends an
 error message (a single element stringlist) in response.

 Frontend assumes that it always receives a multi-element stringlist,
 resulting in segfault.  This patch adds checks strlist.count() before
 parsing.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6588>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list