[mythtv-commits] Ticket #5147: dereference of lType in ProgramRecPriority::updateList() is made outside of null check

MythTV mythtv at cvs.mythtv.org
Fri Apr 4 15:01:02 UTC 2008


#5147: dereference of lType in ProgramRecPriority::updateList() is made outside of
null check
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |       Owner:  ijr    
     Type:  defect                           |      Status:  new    
 Priority:  minor                            |   Milestone:  unknown
Component:  mythtv                           |     Version:  head   
 Severity:  low                              |     Mlocked:  0      
---------------------------------------------+------------------------------
 At line 1430 in programs/mythfrontend/programrecpriority.cpp lType is
 dereferenced outside of the conditional that checks for null. Since lType
 might be null at this point it could be a segfault. The dereferenced
 should be put inside the null check.

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


More information about the mythtv-commits mailing list