[mythtv-commits] Ticket #5237: Make sure string allocation is big enough in MHOctetString::MHOctetString()

MythTV mythtv at cvs.mythtv.org
Thu May 1 18:59:19 UTC 2008


#5237: Make sure string allocation is big enough in MHOctetString::MHOctetString()
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |        Owner:  ijr    
     Type:  defect                           |       Status:  closed 
 Priority:  trivial                          |    Milestone:  unknown
Component:  mythtv                           |      Version:  head   
 Severity:  low                              |   Resolution:  invalid
  Mlocked:  0                                |  
---------------------------------------------+------------------------------
Changes (by danielk):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 MHOctetString does not include the the null terminator from a char*
 string. The point of this class is to allow strings with nulls in them, so
 instead of a null terminator the length of the string is recorded in a
 separate int.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5237#comment:1>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list