summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Merge pull request #735 from lz4/versionOutYann Collet2019-06-251-2/+3
|\ | | | | fix #734 : --version should output to stdout
| * fix #734 : --version should output to stdoutYann Collet2019-06-241-2/+3
|/ | | | instead of stderr
* update simple_buffer exampleYann Collet2019-06-061-20/+25
| | | | there were a few tiny inaccuracies, especially in error conditions.
* precise again that LZ4 decoder needs metadataYann Collet2019-06-062-42/+62
| | | | and that such metadata must be provided / sent / saved by the application.
* Merge pull request #727 from ephiepark/devYann Collet2019-06-052-32/+13
|\ | | | | CircleCI : use custom Docker Image with pre-installed dependencies
| * circleci : use custom docker image with pre-installed dependenciesEphraim Park2019-06-052-32/+13
|/
* restored FORCE_INLINEYann Collet2019-06-041-1/+0
|
* Merge pull request #718 from lz4/fullbenchYann Collet2019-05-311-17/+64
|\ | | | | fullbench: added test scenario LZ4F_decompress_followHint
| * fullbench: ensure decompressionFunction and dName are initializedYann Collet2019-05-311-4/+14
| | | | | | | | Visual Studio seems to miss that they are necessarily initialized in the switch() { case: }
| * replaced while(1)Yann Collet2019-05-311-3/+2
| | | | | | | | | | by for (;;) just to please Visual Studio C4127 .
| * fullbench: added test scenario LZ4F_decompress_followHintYann Collet2019-05-311-13/+51
| | | | | | | | | | | | | | | | | | This emulates a streaming scenario, where the caller follows rigorously the srcSize hints provided as return value of LZ4F_decompress(). This is useful to show the issue in #714, where data is uselessly copied in a tmp buffer first.
* | Merge pull request #717 from lz4/inplaceYann Collet2019-05-315-79/+266
|\ \ | | | | | | Added documentation and macro to support in-place compression and decompression
| * | added more details for in-place documentationYann Collet2019-05-312-26/+28
| | |
| * | decompress: changed final memcpy() into memmove()Yann Collet2019-05-311-10/+13
| | | | | | | | | | | | for compatibility with in-place decompression scenarios.
| * | Makefile removed CFLAGS modifierYann Collet2019-05-311-1/+1
| | | | | | | | | | | | which was removing `-O3` as a side effect
| * | updated API manualYann Collet2019-05-301-1/+1
| | |
| * | updated LZ4_DECOMPRESS_INPLACE_MARGINYann Collet2019-05-301-2/+2
| | | | | | | | | | | | | | | to pass worst case scenario. Now adds margin proportional to input size to counter local expansion.
| * | added test case for in-place decompressionYann Collet2019-05-301-32/+63
| | | | | | | | | | | | worst case, designed to make the decoder overwrite into input
| * | add more doc on in-place (de)compressionYann Collet2019-05-302-10/+50
| | |
| * | fuzzer: changed internal buffer sizeYann Collet2019-05-291-9/+10
| | | | | | | | | | | | to ensure no overflow during unit tests
| * | one more conversion warningYann Collet2019-05-291-1/+1
| | |
| * | some more minor conversion warnings fixesYann Collet2019-05-293-10/+10
| | |
| * | fixed minor conversion warningYann Collet2019-05-291-1/+1
| | |
| * | ensure lz4.h can be included with or without LZ4_STATIC_LINKING_ONLY in any ↵Yann Collet2019-05-293-4/+16
| | | | | | | | | | | | | | | | | | order ensure correct propagation of LZ4_DISTANCE_MAX
| * | added comments and macros for in-place (de)compressionYann Collet2019-05-294-10/+83
| | |
| * | added test case for in-place compressionYann Collet2019-05-291-16/+41
| |/
* | Merge pull request #719 from parheliamm/devYann Collet2019-05-311-2/+2
|\ \ | | | | | | FAST_DEC_LOOP: move offset check in specific condition.
| * | FAST_DEC_LOOP: only did offset check in specific condition.Chenxi Mao2019-05-311-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I did FAST_DEC_LOOP performance test, I found the offset check is much more than v1.8.3 You will see the condition check difference via lzbench with dickens test case. v1.8.3 34959 v.1.9.x 1055885 After investigate the code, we could see the difference. v.1.8.3 SKIP the condition check if if condition is true in: https://github.com/lz4/lz4/blob/v1.8.3/lib/lz4.c#L1463 AND below condition is true https://github.com/lz4/lz4/blob/v1.8.3/lib/lz4.c#L1478\ The offset check should be invoked. v1.9.3 The offset check code will be invoked in every loop which lead to downgrade. So the fix would be move this check to specific condition to avoid useless condition check. After this change, the call number is same as v1.8.3
* | Merge pull request #714 from dreambottle/fix-lz4f-input-buf-useYann Collet2019-05-311-1/+1
|\ \ | |/ |/| Fix src temporary buffer use in lz4frame
| * fix temporary buffer use when input size hint is respectedNiko Dzhus2019-05-241-1/+1
| |
* | Merge pull request #715 from gabrielstedman/retYann Collet2019-05-272-3/+11
|\ \ | |/ |/| Handle file not existing case #704
| * Handle file not existing case #704gabrielstedman2019-05-262-3/+11
|/
* Merge pull request #709 from lz4/circleYann Collet2019-05-173-8/+11
|\ | | | | updated tests for CircleCI
| * updated testsYann Collet2019-05-163-8/+11
|/ | | | | - only play listTest with `make test`, not `make all` which is limited to build - update `clangtest`, so that it's possible to disable O3 optimization, for faster processing
* Merge pull request #708 from gabrielstedman/listYann Collet2019-05-167-102/+608
|\ | | | | Add multiframe report to --list command
| * List mode improvements.gstedman2019-05-164-191/+208
| | | | | | | | | | | | | | | | | | Improve formatting Include static assert Use UTIL_fseek to handle potential fseek limitation Be explicit when refusing to read from stdin Properly free dctx after use Include valgrind tests
| * Add multiframe report to --list commandgstedman2019-05-156-96/+585
| |
* | Merge pull request #707 from prekageo/devYann Collet2019-05-141-0/+5
|\ \ | |/ |/| enable LZ4_FAST_DEC_LOOP build macro on aarch64 by default
| * enable LZ4_FAST_DEC_LOOP build macro on aarch64/GCC by defaultGeorge Prekas2019-05-071-0/+5
|/
* Merge pull request #700 from lzutao/meson-non-failuresYann Collet2019-04-302-11/+8
|\ | | | | contrib: Make Meson build non optional
| * meson: Rely only on extracted version in lz4.hLzu Tao2019-04-302-11/+6
| | | | | | | | | | So now instead of warning when failing to extract version number from lz4.h, we error and stop the build instead.
| * contrib: Make Meson build non optionalLzu Tao2019-04-262-4/+6
|/ | | | | * Update ninja version to 1.9 in CI. * Update default project version in meson script.
* Merge pull request #699 from brendene/compressBoundYann Collet2019-04-261-0/+1
|\ | | | | Include block checksum in worst case scenario calculation of dstCapacity
| * Include block checksum in worst case scenario calculation of dstCapacityBrenden Eng2019-04-261-0/+1
|/
* Merge pull request #698 from lz4/tidyYann Collet2019-04-242-66/+75
|\ | | | | several minor style changes recommended by clang-tidy
| * several minor style changes recommended by clang-tidyYann Collet2019-04-242-66/+75
|/
* Merge pull request #697 from ldv-alt/fixes/test-amalgamationYann Collet2019-04-242-11/+9
|\ | | | | Fix test-amalgamation
| * test-amalgamation: split the ruleDmitry V. Levin2019-04-231-6/+8
| | | | | | | | | | | | Change test-amalgamation to follow each-rule-makes-a-single-target idiom. Fixes: a7e8d394 ("[amalgamation] add test")