Opened 11 years ago

Closed 11 years ago

#9903 closed bug (invalid)

[system/kernel/slab] MemoryManager.cpp: Called C++ object pointer is null

Reported by: mt Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: system/kernel/slab Cc:
Blocked By: Blocking:
Platform: All

Description

In MemoryManager::_GetChunk(), if variable "metaChunkList" is NULL, calling metaChunkList->Add() may be invalid. Please see attached report.

Attachments (2)

0019-Fix-called-C-object-pointer-is-null.patch (888 bytes ) - added by mt 11 years ago.
Patch
report-b9b381.html (249.8 KB ) - added by mt 11 years ago.
Report by Clang Static Analyzer

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 11 years ago

patch: 01

by mt, 11 years ago

Attachment: report-b9b381.html added

Report by Clang Static Analyzer

comment:2 by bonefish, 11 years ago

Resolution: invalid
Status: newclosed

That's a false positive. metaChunkList can only be NULL when chunkSize == SLAB_CHUNK_SIZE_LARGE (cf. the beginning of _AllocateChunks()), so the offending branch is not taken in this case.

Note: See TracTickets for help on using tickets.