CDataStore::GetInt16
function · base · primitive
- Address
0x418d30· 123 bytes, up to0x418daa- Meaning
- Reads a 16-bit value from a data store
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 4
- ReadPartyMemberStats objectlayer
- ReadLearnedSpell objectlayer
- ReadInitialSpells objectlayer
- ReadPetitionRecord unassigned
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.