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)
Change History (4)
by , 11 years ago
Attachment: | 0019-Fix-called-C-object-pointer-is-null.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Patch