summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [fuzzer] Update scripts for new fuzzersNick Terrell2019-07-183-6/+11
|
* [fuzz] Add a streaming round trip fuzzerNick Terrell2019-07-181-0/+217
|
* Unconditionally Clear `dictCtx`W. Felix Handte2019-07-181-5/+3
|
* Fix Data Corruption Bug when Streaming with an Attached Dict in HC ModeW. Felix Handte2019-07-181-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/destSizeYann Collet2019-07-171-2/+32
|\ | | | | [LZ4_compress_destSize + multi-blocks streaming] Fix rare data corruption bug
| * [LZ4_compress_destSize] Fix overflow conditionNick Terrell2019-07-171-1/+1
| |
| * [LZ4_compress_destSize] Fix rare data corruption bugNick Terrell2019-07-171-0/+30
| |
| * [LZ4_compress_destSize] Allow 2 more bytes of match lengthNick Terrell2019-07-171-1/+1
|/
* Merge pull request #752 from terrelln/fuzzersYann Collet2019-07-169-52/+314
|\ | | | | [ossfuzz] Improve the fuzzers
| * [ossfuzz] Improve the fuzzersNick Terrell2019-07-158-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 decodingNick Terrell2019-07-151-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_distanceYann Collet2019-07-155-8/+18
|\ \ | | | | | | ensure conformance with custom LZ4_DISTANCE_MAX
| * | ensure conformance with custom LZ4_DISTANCE_MAXYann Collet2019-07-155-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_MAXYann Collet2019-07-151-1/+1
|\ \ | |/ |/| bugfix: correctly control the offset < LZ4_DISTANCE_MAX,when change t…
| * bugfix: correctly control the offset < LZ4_DISTANCE_MAX,when change the ↵Hitatm2019-07-151-1/+1
|/ | | | value of LZ4_DISTANCE_MAX,
* keep the "lorem ipsum" topic of the example stringYann Collet2019-07-121-1/+1
| | | | but make it compressible
* Merge pull request #751 from hamidzr/simple-buffer-example-inputYann Collet2019-07-121-2/+3
|\ | | | | simple buffer example minor input update. fixes #750
| * print the compression ratioHamid Zare2019-07-111-1/+2
| |
| * changed the input text to something more compression friendlyHamid Zare2019-07-111-1/+1
|/
* Merge pull request #749 from sylvestre/patch-1Yann Collet2019-07-041-1/+1
|\ | | | | Remove an useless declaration
| * Remove an useless declarationSylvestre Ledru2019-07-041-1/+1
|/
* Merge pull request #746 from lz4/circleciYann Collet2019-07-031-6/+4
|\ | | | | CircleCI : reduced test duration
| * CircleCI : reduced test durationYann Collet2019-07-011-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_fixedYann Collet2019-07-032-100/+210
|\ \ | | | | | | updated frametest
| * | fix minor cppcheck warningsYann Collet2019-06-302-3/+3
| | |
| * | updated frametestYann Collet2019-06-301-16/+27
| | | | | | | | | | | | | | | | | | so that noisy src decompression doesn't generate output nor fails when decompression fails (which is expected).
| * | Merge branch 'fuzzasan' into fuzzasan_fixedYann Collet2019-06-302-89/+188
| |\ \
| | * | frametest: added LZ4F decoder noise testYann Collet2019-06-302-89/+188
| | | |
* | | | Merge pull request #748 from amchoukir/amchoukir-doublebuffer-docYann Collet2019-07-031-3/+3
|\ \ \ \ | | | | | | | | | | Update blockStreaming_doubleBuffer.md
| * | | | Update blockStreaming_doubleBuffer.mdAmine Choukir2019-07-031-3/+3
|/ / / /
* | | | Merge pull request #745 from lz4/bump_192Yann Collet2019-07-015-14/+14
|\ \ \ \ | |_|_|/ |/| | | bumped version number to v1.9.2
| * | | bumped version number to v1.9.2Yann Collet2019-07-015-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/ossfuzzYann Collet2019-06-309-0/+256
|\ \ \ | | | | | | | | oss-fuzz: Add a fuzzing target that compiles in the oss-fuzz environment
| * | | Remove unnecessary call to Makefile.incMax Dymond2019-06-301-2/+0
| | | |
| * | | More markups for style changesMax Dymond2019-06-284-28/+39
| | | |
| * | | Move to using C rather than C++ for compilationMax Dymond2019-06-286-6/+13
| | | |
| * | | Write a simple decompress target as wellMax Dymond2019-06-283-5/+34
| | | |
| * | | Code review markups:Max Dymond2019-06-283-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 environmentMax Dymond2019-06-288-0/+210
| | | |
* | | | Merge pull request #741 from lzutao/meson-deprecated-warnYann Collet2019-06-305-26/+33
|\ \ \ \ | | | | | | | | | | meson: Fix deprecated warnings on build options
| * | | | meson: Rename options in travis configLzu Tao2019-06-291-12/+18
| | | | |
| * | | | meson: Always build gen_manual on build machineLzu Tao2019-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | As gen_manual is using as a generator, not a binary target installed on host machine.
| * | | | meson: Fix deprecated warnings on build optionsLzu Tao2019-06-293-14/+14
| | | | | | | | | | | | | | | | | | | | Meson now reserves `build_` prefix options.
* | | | | Merge pull request #742 from lz4/fuzzasan_fixedYann Collet2019-06-304-64/+114
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | New fuzzer test for #738
| * | | Merge branch 'dev' into fuzzasan_fixedYann Collet2019-06-291-2/+8
| |\ \ \ | |/ / / |/| | / | | |/ | |/|
* | | Merge pull request #740 from terrelln/fix2Yann Collet2019-06-291-2/+8
|\ \ \ | | | | | | | | Fix out-of-bounds read
| * | | Fix out-of-bounds read of up to 64 KB in the pastNick Terrell2019-06-281-2/+8
|/ / /
| * | travisCI: added ASAN fuzzer testsYann Collet2019-06-294-13/+24
| | | | | | | | | | | | and fixed minor formatting warnings
| * | moved noisy-src decoder test into cBuffer_exactYann Collet2019-06-291-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 #738Yann Collet2019-06-291-51/+90
|/ /