CDataStore::GetData
function · base
- Address
0x419400· 257 bytes, up to0x419500- Meaning
- Copies a count of bytes out of a data store a window at a time; a short store copies what remains, then poisons
- Confidence
- verified, proof one
- Finding
- net/messages#data-store-reads
- Test
net::datastore_heap,net::datastore_inline,net::datastore_window
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 7
- CDataStore::GetBytes base
- ObjectApplyValues objectlayer
- ServerLink::CmdGruntProvesession net
- ServerLink::CmdGruntAuthChallenge net
- ServerLink::CmdGruntAuthVerify net
- ClientLink::CmdXferInitiate net
- ReadSpellCastTargets spell
Callees 1
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.