Opened 16 years ago
Closed 16 years ago
#4844 closed defect (fixed)
don't dereference this if it doesn't exist in dvdnav_internal.h
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | 0.21-fixes |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
In dvdnav_internal.h, printerr is defined as:
#define printerr(str) strncpy(this->err_str, str, MAX_ERR_LEN);
Unfortunately, all over the code functions call:
if(!this) { printerr("Passed a NULL pointer."); return DVDNAV_STATUS_ERR; }
Which means that instead of printing an error it will try to dereference a null pointer and segfault.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
check this before dereferencing it