benilla-re systems structs docs

CDataStore::FetchRead

function · base

Address
0x417c20 · 5 bytes, up to 0x417c24
Meaning
Refuses to move a plain data store's window for a read: returns 0
Confidence
verified, proof one
Finding
net/messages#data-store-reads
Test
net::datastore_heap

Finding: Data store reads in net: messages

A data store's buffer (+0x4) holds the bytes from position +0x8 for +0xc bytes; the size is +0x10, the cursor +0x14. Each read of n bytes tests cursor + n > size, as an unsigned add with no overflow guard, then asks vtable slot 2 to move the window when the bytes lie outside it; the plain store (0x417c20) and the network layer's always refuse. Either failure sets the cursor to size + 1, so every later read fails, with no error flag; a fixed-width read leaves its destination unwritten. GetData copies chunks of at most the bytes remaining, the window and the count, at least 1: a count past the size copies what remains, then poisons the cursor.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

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