Opened 11 years ago

Closed 11 years ago

#9879 closed bug (fixed)

[file_systems/udf] Icb.cpp: Called C++ object pointer is null

Reported by: mt Owned by: nobody
Priority: normal Milestone: R1
Component: File Systems/UDF Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

In Icb::Icb(), if variable "volume" is NULL, calling fVolume->MapBlock() is invalid, since fVolume was initialized to volume. Please see attached report.

Attachments (3)

0009-Fix-called-C-object-pointer-is-null.patch (936 bytes ) - added by mt 11 years ago.
Patch
report-mq2NP5.html (71.0 KB ) - added by mt 11 years ago.
Report by Clang Static Analyzer
0011-Fix-called-C-object-pointer-is-null.patch (901 bytes ) - added by mt 11 years ago.
New patch

Download all attachments as: .zip

Change History (7)

comment:1 by mt, 11 years ago

patch: 01

by mt, 11 years ago

Attachment: report-mq2NP5.html added

Report by Clang Static Analyzer

comment:2 by korli, 11 years ago

No TRACE() is needed at this place. The caller is responsible for checking the init status and logging if needed.

comment:3 by mt, 11 years ago

Thanks for reviewing, I rewrite patch.

comment:4 by korli, 11 years ago

Resolution: fixed
Status: newclosed

Applied in hrev45867. Thanks!

Note: See TracTickets for help on using tickets.