Rizin
unix-like reverse engineering framework and cli tools
|
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Go to the source code of this file.
Macros | |
#define | UPDATE_CHECK(check, buf, len) (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) |
#define | CRC2(check, word) |
#define | CRC4(check, word) |
#define | LOAD() |
#define | RESTORE() |
#define | INITBITS() |
#define | PULLBYTE() |
#define | NEEDBITS(n) |
#define | BITS(n) ((unsigned)hold & ((1U << (n)) - 1)) |
#define | DROPBITS(n) |
#define | BYTEBITS() |
#define BYTEBITS | ( | ) |
#define CRC2 | ( | check, | |
word | |||
) |
#define CRC4 | ( | check, | |
word | |||
) |
#define DROPBITS | ( | n | ) |
#define INITBITS | ( | ) |
#define NEEDBITS | ( | n | ) |
#define PULLBYTE | ( | ) |
#define RESTORE | ( | ) |
void fixedtables | ( | struct inflate_state FAR * | state | ) |
Definition at line 279 of file inflate.c.
References bits(), distfix, DISTS, fixed(), inflate_table(), lenfix, LENS, and inflate_state::next.
Referenced by inflate().
Definition at line 623 of file inflate.c.
References adler32(), lzma_stream::avail_in, lzma_stream::avail_out, BAD, bits(), code::bits, BITS, BYTEBITS, CHECK, CODELENS, CODES, COMMENT, COPY, COPY_, CRC2, crc32(), CRC4, DICT, DICTID, DIST, DISTEXT, DISTS, DONE, DROPBITS, EXLEN, EXTRA, FAR, fixedtables(), FLAGS, from, GUNZIP, inflate_state::have, HCRC, HEAD, inflate_state::hold, if(), in, inflate_fast(), inflate_table(), inflateStateCheck(), INITBITS, int, L, inflate_state::last, len, LEN, LEN_, LENEXT, LENGTH, LENLENS, LENS, LIT, LOAD, MATCH, MEM, NAME, NEEDBITS, state::next, inflate_state::next, lzma_stream::next_in, lzma_stream::next_out, code::op, OS, out, PULLBYTE, RESTORE, STORED, strm, SYNC, TABLE, TIME, lzma_stream::total_in, lzma_stream::total_out, Trace, Tracev, Tracevv, TYPE, TYPEDO, unsigned, UPDATE_CHECK, updatewindow(), code::val, Z_BLOCK, Z_BUF_ERROR, z_const, Z_DATA_ERROR, Z_DEFLATED, Z_FINISH, Z_MEM_ERROR, Z_NEED_DICT, Z_NULL, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, Z_TREES, zmemcpy(), and ZSWAP32.
Referenced by deflate_index_build(), deflate_index_extract(), gz_decomp(), gzcopy(), gzip_normalize(), gzscan(), inf(), main(), process(), recompress(), uncompress2(), and unzReadCurrentFile().
Definition at line 1585 of file inflate.c.
References FAR, inflateStateCheck(), state::next, and strm.
Definition at line 1492 of file inflate.c.
References inflate_state::codes, dest, inflate_state::distcode, ENOUGH, FAR, inflateStateCheck(), inflate_state::lencode, state::next, inflate_state::next, source, inflate_state::strm, inflate_state::window, inflate_state::wsize, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, ZALLOC, ZFREE, and zmemcpy().
Definition at line 1301 of file inflate.c.
References FAR, if(), inflateStateCheck(), strm, Tracev, Z_NULL, Z_OK, Z_STREAM_ERROR, and ZFREE.
Referenced by deflate_index_build(), deflate_index_extract(), end(), gzclose_r(), gzcopy(), gzip_normalize(), gzscan(), inf(), main(), uncompress2(), and unzCloseCurrentFile().
Definition at line 1315 of file inflate.c.
References FAR, if(), inflateStateCheck(), strm, Z_NULL, Z_OK, Z_STREAM_ERROR, and zmemcpy().
int ZEXPORT inflateGetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
Definition at line 1373 of file inflate.c.
References FAR, test-lz4-versions::head, if(), inflateStateCheck(), strm, Z_OK, and Z_STREAM_ERROR.
Definition at line 196 of file inflate.c.
References FAR, HEAD, inflateReset2(), strm, Tracev, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, Z_VERSION_ERROR, ZALLOC, zcalloc(), zcfree(), ZFREE, and ZLIB_VERSION.
Referenced by inflateInit_().
Definition at line 240 of file inflate.c.
References DEF_WBITS, inflateInit2_(), and strm.
Definition at line 1572 of file inflate.c.
References COPY, FAR, inflateStateCheck(), long, MATCH, and strm.
Definition at line 248 of file inflate.c.
References bits(), FAR, if(), inflateStateCheck(), strm, unsigned, value, Z_OK, and Z_STREAM_ERROR.
Referenced by deflate_index_extract().
Definition at line 145 of file inflate.c.
References FAR, inflateResetKeep(), inflateStateCheck(), strm, and Z_STREAM_ERROR.
Referenced by deflate_index_build(), gz_look(), gzip_normalize(), inflateReset2(), inflateSync(), and main().
Definition at line 158 of file inflate.c.
References FAR, if(), inflateReset(), inflateStateCheck(), strm, unsigned, inflate_state::wrap, Z_NULL, Z_STREAM_ERROR, and ZFREE.
Referenced by deflate_index_extract(), and inflateInit2_().
Definition at line 119 of file inflate.c.
References FAR, HEAD, if(), inflateStateCheck(), state::next, strm, lzma_stream::total_in, lzma_stream::total_out, Tracev, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Referenced by inflateReset().
Definition at line 1338 of file inflate.c.
References adler32(), DICT, FAR, if(), inflateStateCheck(), L, MEM, strm, Tracev, updatewindow(), Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Referenced by deflate_index_extract().
Definition at line 105 of file inflate.c.
References FAR, HEAD, if(), strm, SYNC, and Z_NULL.
Referenced by inflate(), inflateCodesUsed(), inflateCopy(), inflateEnd(), inflateGetDictionary(), inflateGetHeader(), inflateMark(), inflatePrime(), inflateReset(), inflateReset2(), inflateResetKeep(), inflateSetDictionary(), inflateSync(), inflateSyncPoint(), inflateUndermine(), and inflateValidate().
Definition at line 1424 of file inflate.c.
References lzma_stream::avail_in, FAR, flags, if(), in, inflateReset(), inflateStateCheck(), len, lzma_stream::next_in, out, strm, SYNC, syncsearch(), lzma_stream::total_in, lzma_stream::total_out, TYPE, Z_BUF_ERROR, Z_DATA_ERROR, Z_OK, and Z_STREAM_ERROR.
Definition at line 1482 of file inflate.c.
References FAR, inflateStateCheck(), STORED, strm, and Z_STREAM_ERROR.
Definition at line 1539 of file inflate.c.
References else, FAR, inflateStateCheck(), strm, Z_DATA_ERROR, Z_OK, and Z_STREAM_ERROR.
Definition at line 1557 of file inflate.c.
References check, FAR, if(), inflateStateCheck(), strm, Z_OK, and Z_STREAM_ERROR.
void fixedtables OF | ( | (struct inflate_state FAR *state) | ) |
int inflateStateCheck OF | ( | (z_streamp strm) | ) |
Definition at line 1401 of file inflate.c.
References inflate_state::have, len, and inflate_state::next.
Referenced by inflateSync().