[mythtv-commits] Ticket #5289: SIScan::UpdateSDTinDB can leak desc or segfault because of a given pointer
MythTV
mythtv at cvs.mythtv.org
Sat May 3 22:01:20 UTC 2008
#5289: SIScan::UpdateSDTinDB can leak desc or segfault because of a given pointer
---------------------------------------------+------------------------------
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 pointer desc in UpdateSDTinDB could be allocated by the function it is
retrieve from (GetServiceDescriptor()). Then it could be leaked if certain
failure paths are followed. Also because it is not always checked for
null, it could segfault when dereferenced and is null.
The patch used an std::auto_ptr to manage desc instead and adds any
necessary checks for null.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5289>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list