benilla-re systems structs docs

StormHeapOnGrid

function · storm · boundary

Address
0x6450c0 · 58 bytes, up to 0x6450f9
Signature
uint32_t __thiscall (void *this, void *header)
Meaning
Returns 1 when a header lies in the segment at this slot at a multiple of its class size
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 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.