Opened 11 years ago
Closed 11 years ago
#9883 closed bug (fixed)
[Cortex] MediaFormatIO.cpp: Forming reference to null pointer
Reported by: | mt | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Cortex | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
In MediaFormatIO::xmlImportChild(), if childAsFormat is NULL, childAsFormat->m_format.u.raw_audio and childAsFormat->m_format.u.raw_video are invalid. Please see attached report.
Attachments (4)
Change History (8)
by , 11 years ago
Attachment: | 0012-Fix-forming-reference-to-null-pointer.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
Using an else block would fit better:
if (error_condition) { report_error(); } else { output = ... }
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed the style and committed in hrev45894. Thanks!
Note:
See TracTickets
for help on using tickets.
Patch