Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [fuzzer] Update scripts for new fuzzers | Nick Terrell | 2019-07-18 | 3 | -6/+11 |
| | |||||
* | [fuzz] Add a streaming round trip fuzzer | Nick Terrell | 2019-07-18 | 1 | -0/+217 |
| | |||||
* | Unconditionally Clear `dictCtx` | W. Felix Handte | 2019-07-18 | 1 | -5/+3 |
| | |||||
* | Fix Data Corruption Bug when Streaming with an Attached Dict in HC Mode | W. Felix Handte | 2019-07-18 | 1 | -0/+5 |
| | | | | | | | | | | | | This diff fixes an issue in which we failed to clear the `dictCtx` in HC compression. The `dictCtx` is not supposed to be used when an `extDict` is present: matches found in the `dictCtx` do not account for the presence of an `extDict` segment, and their offsets are therefore miscalculated when one is present. This can lead to data corruption. This diff clears the `dictCtx` whenever setting an `extDict`. This issue was uncovered by @terrelln's fuzzing work. | ||||
* | Merge pull request #756 from terrelln/destSize | Yann Collet | 2019-07-17 | 1 | -2/+32 |
|\ | | | | | [LZ4_compress_destSize + multi-blocks streaming] Fix rare data corruption bug | ||||
| * | [LZ4_compress_destSize] Fix overflow condition | Nick Terrell | 2019-07-17 | 1 | -1/+1 |
| | | |||||
| * | [LZ4_compress_destSize] Fix rare data corruption bug | Nick Terrell | 2019-07-17 | 1 | -0/+30 |
| | | |||||
| * | [LZ4_compress_destSize] Allow 2 more bytes of match length | Nick Terrell | 2019-07-17 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #752 from terrelln/fuzzers | Yann Collet | 2019-07-16 | 9 | -52/+314 |
|\ | | | | | [ossfuzz] Improve the fuzzers | ||||
| * | [ossfuzz] Improve the fuzzers | Nick Terrell | 2019-07-15 | 8 | -44/+273 |
| | | | | | | | | | | | | | | | | | | | | | | * Run more decompression variants * Round trip the compression fuzzer and do partial decompression as well * Add a compression fuzzer that compresses into a smaller output buffer and test the destSize variant These fuzzers caught 2 bugs that were fixed in the previous commit. * Input buffer over-read in partial decompress * Partial decompress fails if output size is 0 | ||||
| * | [lz4] Fix bugs in partial decoding | Nick Terrell | 2019-07-15 | 1 | -8/+41 |
| | | | | | | | | | | * Partial decoding could read a few bytes beyond the end of the input * Partial decoding returned an error with an empty output buffer | ||||
* | | Merge pull request #755 from lz4/custom_distance | Yann Collet | 2019-07-15 | 5 | -8/+18 |
|\ \ | | | | | | | ensure conformance with custom LZ4_DISTANCE_MAX | ||||
| * | | ensure conformance with custom LZ4_DISTANCE_MAX | Yann Collet | 2019-07-15 | 5 | -8/+18 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | It's now possible to select a custom LZ4_DISTANCE_MAX at compile time, provided it's <= 65535. However, in some cases (when compressing in byU16 mode), the new distance wasn't respected, as it used to implied that it was necessarily within range. Added a distance check for this case. Also : added a new TravisCI test which ensures that custom LZ4_DISTANCE_MAX compiles correctly and compresses correctly (relying on `assert()` to find outsized offsets). | ||||
* | | Merge pull request #753 from Hitatm/fix_LZ4_DISTANCE_MAX | Yann Collet | 2019-07-15 | 1 | -1/+1 |
|\ \ | |/ |/| | bugfix: correctly control the offset < LZ4_DISTANCE_MAX,when change t… | ||||
| * | bugfix: correctly control the offset < LZ4_DISTANCE_MAX,when change the ↵ | Hitatm | 2019-07-15 | 1 | -1/+1 |
|/ | | | | value of LZ4_DISTANCE_MAX, | ||||
* | keep the "lorem ipsum" topic of the example string | Yann Collet | 2019-07-12 | 1 | -1/+1 |
| | | | | but make it compressible | ||||
* | Merge pull request #751 from hamidzr/simple-buffer-example-input | Yann Collet | 2019-07-12 | 1 | -2/+3 |
|\ | | | | | simple buffer example minor input update. fixes #750 | ||||
| * | print the compression ratio | Hamid Zare | 2019-07-11 | 1 | -1/+2 |
| | | |||||
| * | changed the input text to something more compression friendly | Hamid Zare | 2019-07-11 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #749 from sylvestre/patch-1 | Yann Collet | 2019-07-04 | 1 | -1/+1 |
|\ | | | | | Remove an useless declaration | ||||
| * | Remove an useless declaration | Sylvestre Ledru | 2019-07-04 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #746 from lz4/circleci | Yann Collet | 2019-07-03 | 1 | -6/+4 |
|\ | | | | | CircleCI : reduced test duration | ||||
| * | CircleCI : reduced test duration | Yann Collet | 2019-07-01 | 1 | -6/+4 |
| | | | | | | | | | | | | | | | | | | | | | | Ideally, we want to make CircleCI a "fast" test environment, with short feedback loop (~5mn). We are still far from this goal. This patch starts this process by removing "long" tasks which are non-essential and redundant with travisCI. It also acknowledges that parallelism is broken. The script should be more heavily updated to support parallelism, which might be important to support its goal. | ||||
* | | Merge pull request #743 from lz4/fuzzasan_fixed | Yann Collet | 2019-07-03 | 2 | -100/+210 |
|\ \ | | | | | | | updated frametest | ||||
| * | | fix minor cppcheck warnings | Yann Collet | 2019-06-30 | 2 | -3/+3 |
| | | | |||||
| * | | updated frametest | Yann Collet | 2019-06-30 | 1 | -16/+27 |
| | | | | | | | | | | | | | | | | | | so that noisy src decompression doesn't generate output nor fails when decompression fails (which is expected). | ||||
| * | | Merge branch 'fuzzasan' into fuzzasan_fixed | Yann Collet | 2019-06-30 | 2 | -89/+188 |
| |\ \ | |||||
| | * | | frametest: added LZ4F decoder noise test | Yann Collet | 2019-06-30 | 2 | -89/+188 |
| | | | | |||||
* | | | | Merge pull request #748 from amchoukir/amchoukir-doublebuffer-doc | Yann Collet | 2019-07-03 | 1 | -3/+3 |
|\ \ \ \ | | | | | | | | | | | Update blockStreaming_doubleBuffer.md | ||||
| * | | | | Update blockStreaming_doubleBuffer.md | Amine Choukir | 2019-07-03 | 1 | -3/+3 |
|/ / / / | |||||
* | | | | Merge pull request #745 from lz4/bump_192 | Yann Collet | 2019-07-01 | 5 | -14/+14 |
|\ \ \ \ | |_|_|/ |/| | | | bumped version number to v1.9.2 | ||||
| * | | | bumped version number to v1.9.2 | Yann Collet | 2019-07-01 | 5 | -14/+14 |
|/ / / | | | | | | | | | | to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version. | ||||
* | | | Merge pull request #739 from cmeister2/cmeister2/ossfuzz | Yann Collet | 2019-06-30 | 9 | -0/+256 |
|\ \ \ | | | | | | | | | oss-fuzz: Add a fuzzing target that compiles in the oss-fuzz environment | ||||
| * | | | Remove unnecessary call to Makefile.inc | Max Dymond | 2019-06-30 | 1 | -2/+0 |
| | | | | |||||
| * | | | More markups for style changes | Max Dymond | 2019-06-28 | 4 | -28/+39 |
| | | | | |||||
| * | | | Move to using C rather than C++ for compilation | Max Dymond | 2019-06-28 | 6 | -6/+13 |
| | | | | |||||
| * | | | Write a simple decompress target as well | Max Dymond | 2019-06-28 | 3 | -5/+34 |
| | | | | |||||
| * | | | Code review markups: | Max Dymond | 2019-06-28 | 3 | -17/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | - Correct use of CPPFLAGS - Detect allocation failure - Add a CHECK macro for failure | ||||
| * | | | Add a fuzzing target that compiles in the oss-fuzz environment | Max Dymond | 2019-06-28 | 8 | -0/+210 |
| | | | | |||||
* | | | | Merge pull request #741 from lzutao/meson-deprecated-warn | Yann Collet | 2019-06-30 | 5 | -26/+33 |
|\ \ \ \ | | | | | | | | | | | meson: Fix deprecated warnings on build options | ||||
| * | | | | meson: Rename options in travis config | Lzu Tao | 2019-06-29 | 1 | -12/+18 |
| | | | | | |||||
| * | | | | meson: Always build gen_manual on build machine | Lzu Tao | 2019-06-29 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | As gen_manual is using as a generator, not a binary target installed on host machine. | ||||
| * | | | | meson: Fix deprecated warnings on build options | Lzu Tao | 2019-06-29 | 3 | -14/+14 |
| | | | | | | | | | | | | | | | | | | | | Meson now reserves `build_` prefix options. | ||||
* | | | | | Merge pull request #742 from lz4/fuzzasan_fixed | Yann Collet | 2019-06-30 | 4 | -64/+114 |
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | | New fuzzer test for #738 | ||||
| * | | | Merge branch 'dev' into fuzzasan_fixed | Yann Collet | 2019-06-29 | 1 | -2/+8 |
| |\ \ \ | |/ / / |/| | / | | |/ | |/| | |||||
* | | | Merge pull request #740 from terrelln/fix2 | Yann Collet | 2019-06-29 | 1 | -2/+8 |
|\ \ \ | | | | | | | | | Fix out-of-bounds read | ||||
| * | | | Fix out-of-bounds read of up to 64 KB in the past | Nick Terrell | 2019-06-28 | 1 | -2/+8 |
|/ / / | |||||
| * | | travisCI: added ASAN fuzzer tests | Yann Collet | 2019-06-29 | 4 | -13/+24 |
| | | | | | | | | | | | | and fixed minor formatting warnings | ||||
| * | | moved noisy-src decoder test into cBuffer_exact | Yann Collet | 2019-06-29 | 1 | -34/+34 |
| | | | | | | | | | | | | | | | so that it can also catch any potential read out-of-bound in the input buffer (none reported so far, just a precaution for the future). | ||||
| * | | fuzzer: added test to catch #738 | Yann Collet | 2019-06-29 | 1 | -51/+90 |
|/ / |