StormHeapFreeChecked
function · storm · boundary
- Address
0x645790· 83 bytes, up to0x6457e2- Signature
void __thiscall (void *this, void *block, const char *name, uint32_t line)- Meaning
- Frees a block under the heap lock when its header passes the check; a null block does nothing
- Confidence
- verified, proof one
- Finding
- storm/heap#checking-a-freed-block
Finding: Checking a freed block in storm: heap
SMemFree (0x646430) calls 0x645790 and returns 1 for any block. A null pointer does nothing. Under the heap's critical
section 0x6461c0 checks the header and, when it passes, 0x645eb0 frees the block. A header fails when it is not
readable for 8 bytes, has the in-use bit clear, lies outside its segment or off its class grid (class
24 or less), or, above class 24, is not page-aligned or has a class size below the stored size. A failure reports error
0x8510007c through 0x6452a0 with the caller's name and line and frees nothing.
The derivation is in the doc.
Callers 2
- SMemReAlloc storm
- SMemFree storm
Callees 2
- StormHeapFree storm
- StormHeapCheckBlock storm
Calls and jumps by a bare address, from tables/calls.tsv.