Opened 16 years ago
Closed 16 years ago
#5575 closed defect (fixed)
check pointer before dereferencing in mythphone
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | trivial | Milestone: | unknown |
Component: | mythphone | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
sipMsg is checked at the beginning of ::FSM() so it should be checked throughout. My guess is that sipMsg is almost never null so maybe this code could be reworked differently. But the attached patch assumes it can be null and always checks it before dereferencing.
Attachments (2)
Change History (3)
Changed 16 years ago by
Attachment: | mythphone-check-for-null.patch added |
---|
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [18308]) NULL pointer checks in MythPhone?. Fixes #5575. Untested other than to make sure it still compiles under Linux.
Note: See
TracTickets for help on using
tickets.
checks for null where necessary, before dereferencing