Opened 17 years ago
Closed 17 years ago
#5289 closed defect (fixed)
SIScan::UpdateSDTinDB can leak desc or segfault because of a given pointer
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (3)
Changed 17 years ago by
Attachment: | libs_libmythtv_siscan.cpp-use-auto_ptr-to-suppress-leaks.patch added |
---|
comment:1 Changed 17 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
Uses auto_ptr to manage the desc pointer