Commit graph

  • bbd54d987a run-afl-corpus: Avoid locale-dependent filename sorting run-afl-corpus-locale-fix Jeff Epler 2018-07-08 07:52:32 -0500
  • 2c59cbc204 tests/afl-corpus.ref: Update for latest testcase additions. Paul Sokolovsky 2018-07-08 12:47:51 +0300
  • a41cd7861a tests: Add another AFL corpus set from @jepler. Paul Sokolovsky 2018-07-08 12:46:23 +0300
  • 46ba35ec5e tgunzip: Don't allow to decompress more data than specified in gzip trailer. Paul Sokolovsky 2018-07-08 00:27:16 +0300
  • acc49235ea tgunzip: destSize should be set before each call to uzlib_uncompress*(). Paul Sokolovsky 2018-07-08 00:02:20 +0300
  • 25355b1fb4 tests: Add runner for AFL corpus. Paul Sokolovsky 2018-07-07 18:09:40 +0300
  • 7ef57ed6a7 tests/afl-corpus: Add corpus of bad inputs discovered using AFL tool. Paul Sokolovsky 2018-07-07 18:01:58 +0300
  • 35a88bd3be tinf_inflate_block_data: Validate symbol values for len & dist. Paul Sokolovsky 2018-07-07 15:55:08 +0300
  • d901303671 Partially revert "tinf_decode_symbol: Don't traverse past end of TINF_TREE->table and ->trans." afl-crash-fixes Jeff Epler 2018-06-19 14:57:15 -0500
  • 4c50ea3f9e TINF_PUT: move out of line for slight code size savings Jeff Epler 2018-05-20 10:00:02 -0500
  • 188502c088 tinf_decode_trees: avoid out of range access to lengths[] Jeff Epler 2018-05-20 09:39:25 -0500
  • a2c98e6ba9 tinf_decode_trees: propagate error from tinf_decode_symbol Jeff Epler 2018-05-20 09:35:22 -0500
  • 2d8b399df8 tinf_inflate_block_data: Don't read outside of 'dest' buffer Jeff Epler 2018-05-06 14:27:34 -0500
  • 4bc7825ffb tgunzip: properly initialize destStart Jeff Epler 2018-05-08 07:32:53 -0500
  • 4ff6c9f96e tinf_inflate_block_data: Don't write outside of destination buffer Jeff Epler 2018-05-06 21:55:12 -0500
  • 2f26f35302 TINF_PUT: don't write past the end of the destination buffer Jeff Epler 2018-05-06 21:11:55 -0500
  • 9967f1f773 fixup! tinflate, tinfgzip: Don't read past the end of the input buffer Jeff Epler 2018-07-07 13:17:41 -0500
  • 4440911d35 tinflate, tinfgzip: Don't read past the end of the input buffer Jeff Epler 2018-05-05 19:36:37 -0500
  • 7eae43028b tgunzip.c: explicitly give end of input and output buffers Jeff Epler 2018-05-08 07:34:09 -0500
  • abe71eb7cd tinf.h: add new fields for explicit end of source and destination buffers Jeff Epler 2018-05-05 19:36:03 -0500
  • 09ec117dc1 tinf.h: remove unused 'destRemaining' field Jeff Epler 2018-05-06 20:58:58 -0500
  • 78fe45bcec tinf_decode_trees: Don't access before the "length" array. Paul Sokolovsky 2018-07-07 02:09:40 +0300
  • 4fb0087193 tgunzip: Initialize destStart field. Paul Sokolovsky 2018-07-07 01:40:03 +0300
  • a320a70893 tinflate: Catch LZ offsets pointing before the start of output buffer. Paul Sokolovsky 2018-07-07 01:39:08 +0300
  • 14eb5fd02c tests/Makefile: Add "clean" target. Paul Sokolovsky 2018-07-07 13:25:08 +0300
  • 7bc1a9123c */makefile: Move -s (strip) to link flags. Paul Sokolovsky 2018-07-07 12:06:27 +0300
  • 7838852c25 src/makefile: Remove -v flag from ar command line. Paul Sokolovsky 2018-07-07 12:04:02 +0300
  • 07834aca65 */makefile.elf: Rename to just makefile. Paul Sokolovsky 2018-07-07 11:50:51 +0300
  • 8aeabd3344 */makefile.elf: Don't hardcode gcc, use $(CC). Paul Sokolovsky 2018-07-07 11:48:43 +0300
  • f57a277c0f tinf_inflate_block_data: Check for EOF while decoding literal bytes. Paul Sokolovsky 2018-07-07 02:00:36 +0300
  • c36d540c5f tgunzip: Set TINF_DATA::source_limit. Paul Sokolovsky 2018-07-07 00:57:22 +0300
  • 50590fb5b6 tinflate: Don't read past the end of source. Paul Sokolovsky 2018-07-07 00:51:30 +0300
  • 1aa2b1161e tgunzip: Call uzlib_uncompress_init before any other ops on TINF_DATA Paul Sokolovsky 2018-07-07 00:26:40 +0300
  • 6a47a55685 tgunzip: Don't crash on an impossibly small file. Jeff Epler 2018-05-05 19:37:30 -0500
  • 48c27e8783 tgunzip: On decompression error, exit with rc of the error code. Paul Sokolovsky 2018-07-06 22:02:22 +0300
  • cc278f73b6 tinf_decode_symbol: Don't traverse past end of TINF_TREE->table and ->trans. Jeff Epler 2018-05-06 21:18:50 -0500
  • 8168c3c40f tinf.h: Introduce TINF_ARRAY_SIZE(). Paul Sokolovsky 2018-06-11 12:58:50 +0300
  • b29fca4a62 tinf_get_le_uint32: Don't invoke undefined behavior left shifting Jeff Epler 2018-05-06 14:06:44 -0500
  • 65a7f41de3 tinflate: tinf_decode_trees: Optimize for size and add overflow checks. Paul Sokolovsky 2018-05-20 16:04:54 +0300
  • a46a67ca93 tinflate: Typo fix in comment. Paul Sokolovsky 2018-05-20 16:04:09 +0300
  • 74b2a51c21 tests: Add test directory with a basic smoke test for decompressor. Paul Sokolovsky 2018-05-20 16:02:15 +0300
  • d4e4a4aa06 tinflate: Explicitly get length/invlength as little-endian. Paul Sokolovsky 2018-05-11 23:49:48 +0300
  • 15608c066c tinf_inflate_block_data: Don't read outside of 'dest' buffer afl-crash-fixes-nolongjmp Jeff Epler 2018-05-06 14:27:34 -0500
  • 5d7d08ab98 tgunzip: properly initialize destStart Jeff Epler 2018-05-08 07:32:53 -0500
  • b170fcb3c2 tinf_decode_trees: Fix out of bound access to 'lengths' Jeff Epler 2018-05-06 21:29:40 -0500
  • ce0721cb46 tinf_inflate_block_data: Don't write outside of destination buffer Jeff Epler 2018-05-06 21:55:12 -0500
  • 6de173f708 tinf_inflate_block_data: Don't read past the end of length_bits[] or dist_bits[] arrays Jeff Epler 2018-05-06 14:25:59 -0500
  • f573bf7b97 tgunzip: don't crash on an impossibly small file Jeff Epler 2018-05-05 19:37:30 -0500
  • 63459024ac uzlib_uncompress: propagate error from tinf_decode_trees Jeff Epler 2018-05-06 21:19:07 -0500
  • 15ca6cf4a2 tinf_decode_symbol: don't traverse past end of t->trans Jeff Epler 2018-05-06 21:18:50 -0500
  • 87e7ddbbb8 tinf_decode_symbol: don't traverse past end of t->table Jeff Epler 2018-05-06 21:18:41 -0500
  • f0159a0aea tinf_decode_trees: Prepare tinf_decode_trees to return error value Jeff Epler 2018-05-06 21:18:24 -0500
  • 0eb5744a29 TINF_PUT: don't write past the end of the destination buffer Jeff Epler 2018-05-06 21:11:55 -0500
  • 51bb07008b tinflate, tinfgzip: Don't read past the end of the input buffer Jeff Epler 2018-05-05 19:36:37 -0500
  • 991ea7e770 tgunzip.c: explicitly give end of input and output buffers Jeff Epler 2018-05-08 07:34:09 -0500
  • b59b1bb361 tinf.h: add new fields for explicit end of source and destination buffers Jeff Epler 2018-05-05 19:36:03 -0500
  • 84964fccdc tinf.h: remove unused 'destRemaining' field Jeff Epler 2018-05-06 20:58:58 -0500
  • 0fd97e2dd3 tinf_get_le_uint32: Don't invoke undefined behavior left shifting Jeff Epler 2018-05-06 14:06:44 -0500
  • 22dcaafedf top-level Makefile for it afl-crash-build Jeff Epler 2018-05-08 07:23:57 -0500
  • e2404679c4 Don't read outside of 'dest' buffer v2.1j0 Jeff Epler 2018-05-06 14:27:34 -0500
  • a59c20f9d6 Fix out of bound access to 'lengths' Jeff Epler 2018-05-06 21:29:40 -0500
  • 2ce294e8f3 Don't write outside of destination buffer Jeff Epler 2018-05-06 21:55:12 -0500
  • e159936c4f Don't read past the end of length_bits[] or dist_bits[] arrays Jeff Epler 2018-05-06 14:25:59 -0500
  • 470c61600f don't crash on an impossibly small file Jeff Epler 2018-05-05 19:37:30 -0500
  • f44fa13d9b propagate error from tinf_decode_trees Jeff Epler 2018-05-06 21:19:07 -0500
  • 5218f32c9e don't traverse past end of t->trans Jeff Epler 2018-05-06 21:18:50 -0500
  • f8177cec5c don't traverse past end of t->table Jeff Epler 2018-05-06 21:18:41 -0500
  • 4191490e79 Prepare tinf_decode_trees to return error value Jeff Epler 2018-05-06 21:18:24 -0500
  • 127b008e6b don't write past the end of the destination buffer Jeff Epler 2018-05-06 21:11:55 -0500
  • 8e3a64dd05 Don't read past the end of the input buffer Jeff Epler 2018-05-05 19:36:37 -0500
  • e07ea86192 explicitly give end of input and output buffers Jeff Epler 2018-05-05 19:36:03 -0500
  • 3bfe28843a remove unused 'destRemaining' field Jeff Epler 2018-05-06 20:58:58 -0500
  • e2ef5b416f Don't invoke undefined behavior left shifting Jeff Epler 2018-05-06 14:06:44 -0500
  • 41a361739c fuzzer makefiles: add sanitizer Jeff Epler 2018-05-06 14:29:02 -0500
  • fd257fbd99 makefile for fuzzing Jeff Epler 2018-05-06 13:55:00 -0500
  • 8e0fb9dac6 Enable use of clang-afl-fast Jeff Epler 2018-05-05 19:34:57 -0500
  • 27176508e1 tinflate: When using sliding dictionary, check that offset lies within it. master v2.1 rad/master Paul Sokolovsky 2016-10-11 07:08:28 +0300
  • 3fb1f4f7d8 tinfgzip: Fixes for pedantic compiler warnings. v2.0.3 Paul Sokolovsky 2016-09-24 16:06:09 +0300
  • d83f7d4f16 adler32, crc32: Consistently use stdint types. v2.0.2 Paul Sokolovsky 2016-08-17 14:46:11 +0300
  • 7abf5a82d2 tinflate: Fixes for pedantic compiler warnings. v2.0.1 Paul Sokolovsky 2016-08-17 06:23:15 +0300
  • 79d5870ea2 Rename tinf_read_src_byte() to uzlib_get_byte(). v2.0 Paul Sokolovsky 2016-08-15 00:15:46 +0300
  • 9dd4fe3a9b genlz77: Update API to uzlib_ prefix. Paul Sokolovsky 2016-08-15 00:10:19 +0300
  • 6e9f13e9d9 tinf: Rename remaining uncompress API functions to uzlib_ prefix. Paul Sokolovsky 2016-08-14 00:43:36 +0300
  • 82812eac6e tinf: tinf_*_parse_header: Rename to uzlib_*. Paul Sokolovsky 2016-08-14 00:09:51 +0300
  • 6600f29a95 tinf.h: Reorder API declarations for clarity. Paul Sokolovsky 2016-08-12 17:13:32 +0300
  • 0d7290e8cf tgunzip: Update for tinf_uncompress_dyn_chksum(). Paul Sokolovsky 2016-08-11 01:06:58 +0300
  • 05ee017a06 tinf: Add tinf_uncompress_dyn_chksum() handling zlib/gzip chksum calc. Paul Sokolovsky 2016-08-10 02:01:55 +0300
  • 61d9cd644f tinfzlib: Refactor to support stream interface. Paul Sokolovsky 2016-08-06 00:18:52 +0300
  • e200028869 tinf_adler32(): Allow to work in incremental manner. Paul Sokolovsky 2016-08-06 00:14:09 +0300
  • f99e297389 tinflate.c: Allow to read source in stream mode using d->readSource(). Paul Sokolovsky 2016-08-05 02:19:13 +0300
  • 7e817c502a tinf: destGrow() callback no longer needed/used. Paul Sokolovsky 2016-08-05 02:16:57 +0300
  • 7ede9ec449 tinf_uncompress(): Remove dangling function. Paul Sokolovsky 2016-08-03 02:57:13 +0300
  • fbf79b5188 tinfgzip: Rewrite in terms of (new) tinf_uncompress_dyn(). Paul Sokolovsky 2016-08-03 02:03:00 +0300
  • dd802431ad tinflate: Support either stream or inplace uncompress mode. Paul Sokolovsky 2016-08-03 01:49:52 +0300
  • 9daa35b843 tinflate: Refactor to support stream mode. Paul Sokolovsky 2016-08-03 01:38:11 +0300
  • b4082097c7 tinflate: Read source stream byte by byte using tinf_read_src_byte(). Paul Sokolovsky 2016-08-03 01:34:58 +0300
  • 8fb28ff954 tinfzlib: Refactor to support stream interface. dev Paul Sokolovsky 2016-07-18 03:32:26 +0300
  • e3699f4703 tinf_adler32(): Allow to work in incremental manner. Paul Sokolovsky 2016-07-18 03:30:20 +0300
  • 59285caba6 tinflate.c: Allow to read source in stream mode using d->readSource(). Paul Sokolovsky 2016-07-18 00:16:41 +0300
  • a2d83e61b8 tinf: destGrow() callback no longer needed/used. Paul Sokolovsky 2016-07-17 23:50:19 +0300