inflateInit2_
function · zlib · boundary
- Address
0x730d60· 277 bytes, up to0x730e74- Signature
int32_t __fastcall (void *strm, int32_t windowBits, const char *version, int32_t streamSize)- Meaning
- Checks the version and stream size, allocates the 0x1ba8-byte inflate state and sets its wrapper and window
- Confidence
- verified, proof one
- Finding
- storm/bz#the-zlib-it-links
Finding: The zlib it links in storm: compressed loose files
0x730e80 is zlib's inflateInit_: it passes window bits 15 to 0x730d60, inflateInit2_. That checks
the version's first character against 1.2.2 and the stream size against 0x38, defaults the allocator
to 0x7348f0 and 0x734910, allocates a 0x1ba8-byte state and, for 15 bits, sets the wrapper to 1 and the window to 2^15: a zlib
header and an Adler-32 check. 0x732320 is inflateEnd. 0x730ea0 opens as zlib 1.2.2's inflate
does; the rest of its 4,816 bytes is not read here, and the tests run it on every stream they use. Unlike
later zlib it does not require a dynamic block to code end-of-block, so such a block decodes on.
The derivation is in the doc.
Callers 4
- 0x668510 storm
- 0x668650 storm
- 0x668950 storm
- inflateInit_ zlib
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.