Opened 16 years ago
Closed 16 years ago
#5563 closed defect (fixed)
rev 17858 introduces a potential segfault in xmlparsebase.cpp
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
The code inserted by commit of svn rev 17858 introduces a potential segfault. The added if clause includes a dereference of the parent pointer. That pointer might be null. If it is, this code will cause a segfault.
The patch changes the if clause to the not version and wraps the other if clauses in it, but the parent &&
is the only part required.
Attachments (1)
Change History (2)
Changed 16 years ago by
Attachment: | libs_libmythui-null-check-of-parent-required.patch added |
---|
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [17885]) Close #5563, prevent segfault(s) in ParseChildren?() if the pointer parent is NULL. Should parent be null here then we've much bigger problems but crashing should be avoided.
Note: See
TracTickets for help on using
tickets.
makes sure parent is not null before dereferencing