[mythtv-commits] Ticket #4918: can overrun fixed sized array _tsdata

MythTV mythtv at cvs.mythtv.org
Mon Mar 10 22:21:41 UTC 2008


#4918: can overrun fixed sized array _tsdata
---------------------------------------------+------------------------------
 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      
---------------------------------------------+------------------------------
 The array _tsdata is a fixed size of 4 in class TSHeader. But the member
 function AFCOffset() indexes it at 4. This means that if this function is
 called and the conditional evaluates true that the array will be overrun.
 I am pretty sure this is a typo and it should just be _tsdata[3] instead
 of 4.

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


More information about the mythtv-commits mailing list