[mythtv-commits] Ticket #5237: Make sure string allocation is big enough in MHOctetString::MHOctetString()
MythTV
mythtv at cvs.mythtv.org
Mon Apr 21 23:48:34 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: new
Priority: trivial | Milestone: unknown
Component: mythtv | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
In libmythfreemheg, in the file BaseClasses.cpp the storage for a string
is determined by calling strlen(). strlen() gives the size of the string
without counting the null terminator. To make sure that there is room for
the terminator we need to add one more to the string length.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5237>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list