CDataStore::GetBytes
function · base
- Address
0x419aa0· 20 bytes, up to0x419ab3- Meaning
- Copies a count of bytes out of a data store through CDataStore::GetData
- 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 3
- ReadAddOnInfoReply ui
- HandleAccountDataMD5Packet net
- MinigameReadSetup minigame
Callees 1
- CDataStore::GetData base
Calls and jumps by a bare address, from tables/calls.tsv.