summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* frame-api: add method to insert uncomressed dataAlexander Mohr2022-06-098-95/+329
| | | | | | | | new method `uncompressed_update` allows to insert blocks without compression into the lz4 stream. The usage is documented in the frameCompress example Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
* Merge pull request #1084 from Low-power/fix-unit-prefix-namesYann Collet2022-05-241-5/+5
|\ | | | | Correct unit prefix names in programs/lz4io.c
| * Correct unit prefix names in programs/lz4io.cWHR2022-05-241-5/+5
|/
* Merge pull request #1082 from lz4/error_genericYann Collet2022-05-102-58/+53
|\ | | | | Removed all ERROR_GENERIC from lz4frame
| * introduced FORWARD_IF_ERROR()Yann Collet2022-05-101-48/+49
| | | | | | | | | | | | and removed prefix from RETURN_ERROR(_IF) to improve brevity as it's just a local macro (no bleeding in user's namespace).
| * introduced macro LZ4F_RETURN_ERROR_IFYann Collet2022-05-071-32/+23
| |
| * introduced macro LZ4F_RETURN_ERRORYann Collet2022-05-071-37/+39
| |
| * removed ERROR_GENERIC from lz4frame.hYann Collet2022-05-072-3/+4
| | | | | | | | created a new error code in the process : LZ4F_ERROR_compressionState_uninitialized
* | Merge pull request #1080 from t-mat/devYann Collet2022-05-071-0/+1
|\ \ | |/ |/| Add virtual environment checking for Ubuntu 22.04
| * Add virtual environment checking for Ubuntu 22.04Takayuki Matsuoka2022-05-071-0/+1
|/ | | | | | | GitHub Actions recently provides public beta version of Ubuntu 22.04 https://github.com/actions/virtual-environments/issues/5490 This change set just adds environment checking matrix for further changes.
* update library version to v1.9.4Yann Collet2022-04-173-10/+10
| | | | to reduce confusion in traces between dev branch and latest v1.9.3 release.
* Merge pull request #1077 from danyeaw/patch-2Yann Collet2022-04-171-1/+1
|\ | | | | Fix default_library undeclared error in Windows
| * Fix default_library undeclared error in WindowsDan Yeaw2022-04-151-1/+1
|/
* Merge pull request #1075 from danyeaw/patch-1Yann Collet2022-04-131-1/+1
|\ | | | | Fix incorrect meson build option for programs
| * Fix incorrect meson build option for programsDan Yeaw2022-04-131-1/+1
|/
* updated one error codeYann Collet2022-04-061-1/+1
|
* updated documentation around `liblz4` granularityYann Collet2022-03-211-6/+26
|
* Merge pull request #1068 from anjiahao1/devYann Collet2022-03-215-2/+645
|\ | | | | add file operation
| * add file operation and examplesanjiahao2022-03-105-2/+645
|/ | | | | | operate lz4 compressed files as a general files Signed-off-by: anjiahao <anjiahao@xiaomi.com>
* Merge pull request #1064 from tristan957/mesonYann Collet2022-02-1611-386/+244
|\ | | | | Fixup meson build
| * Fixup meson buildTristan Partin2022-02-0911-386/+244
| | | | | | | | | | | | The meson build had gotten a little out of hand. It needed to be cleaned up and have its errors fixed. This should enable lz4 to switch to Meson at any time should the need ever arise.
* | Merge pull request #1067 from eloj/update-github-virtenv-urlsYann Collet2022-02-121-2/+2
|\ \ | | | | | | CI: Update links in comments.
| * | Update links in comments.Eddy Jansson2022-02-121-2/+2
|/ / | | | | | | | | | | The files these comments point to were renamed in https://github.com/actions/virtual-environments/pull/4794 for whatever reason.
* | Merge pull request #1063 from lz4/cmaketestYann Collet2022-02-042-7/+12
|\ \ | | | | | | updated cmake test
| * | updated cmake testYann Collet2022-02-042-7/+12
| | | | | | | | | | | | use `cmake --build` instead of `make` directly
* | | Merge pull request #1052 from leonvictor/devYann Collet2022-02-041-2/+2
|\ \ \ | |/ / |/| | CMake: Fix target includes pointing to the wrong directory
| * | Merge branch 'lz4:dev' into devLéon2022-02-0315-169/+259
| |\ \ | |/ / |/| |
* | | updated block format documentationYann Collet2022-02-021-30/+41
| | | | | | | | | | | | | | | | | | to specifically call attention to offset==0 scenario, which is invalid, and could lead to some form of security issue if incorrectly dealt with (ignored).
* | | Merge pull request #1061 from lz4/memory_usageYann Collet2022-01-317-18/+46
|\ \ \ | | | | | | | | Introduce MIN and MAX bounds to LZ4_MEMORY_USAGE
| * | | added target test-compile-with-lz4-memory-usageYann Collet2022-01-314-6/+23
| | | | | | | | | | | | | | | | and run it in GA CI
| * | | Introduce MIN and MAX bounds to LZ4_MEMORY_USAGEYann Collet2022-01-314-15/+26
|/ / / | | | | | | | | | | | | | | | | | | ensure that `frametest` works fine with these values, notably with low LZ4_MEMORY_USAGE (dict test notably) following suggestions from @t-mat at #1016
* | | minor comments improvements to lz4frameYann Collet2022-01-311-4/+4
| | |
* | | Merge pull request #1060 from gabrielstedman/list_test_fixYann Collet2022-01-291-42/+49
|\ \ \ | | | | | | | | Fix list test
| * | | Correctly use temp folder variableGabriel2022-01-291-1/+1
| | | |
| * | | Convert all strings to fstrings && avoid usage of shell for PopenGabriel2022-01-291-40/+45
| | | |
| * | | Ensure list test exits with appropiate exit code on failureGabriel2022-01-291-1/+3
| | |/ | |/|
* | | Merge pull request #1058 from lz4/fix_test_invalidYann Collet2022-01-293-35/+56
|\ \ \ | |/ / |/| | --test and --list return an error when parsing invalid file
| * | --test and --list return an error when parsing invalid fileYann Collet2022-01-293-35/+56
| | | | | | | | | | | | fix #1045
* | | Merge pull request #1057 from lz4/lz4_unalignYann Collet2022-01-291-6/+6
|\ \ \ | |/ / |/| | renamed unaligned -> LZ4_unaligned
| * | renamed unaligned -> LZ4_unalignedYann Collet2022-01-291-6/+6
| | | | | | | | | | | | | | | better name space isolation suggested by @boris-kolpackov in #1053
* | | Merge pull request #1056 from lz4/fix_opt12Yann Collet2022-01-292-19/+18
|\ \ \ | |/ / |/| | fixed bug in optimal parser
| * | fixed bug in optimal parserYann Collet2022-01-292-19/+18
| | | | | | | | | | | | discovered by @yoniko.
* | | added testYann Collet2022-01-293-2/+6
| | | | | | | | | | | | for --list from stdin
* | | Merge pull request #1048 from Low-power/lz4cli-list-stdinYann Collet2022-01-293-7/+27
|\ \ \ | | | | | | | | '--list' doesn't work stdin even it is a regular file
| * | | Allow '--list' with stdin if it is a regular fileWHR2021-12-143-7/+27
| | | |
* | | | Merge pull request #1049 from eli-schwartz/meson-warning-run_commandYann Collet2022-01-291-7/+2
|\ \ \ \ | |_|/ / |/| | | meson: simplify version lookup and avoid deprecation warnings
| * | | meson: simplify version lookup and avoid deprecation warningsEli Schwartz2021-12-141-7/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | run_command() in development versions of meson will warn when the `check: ` kwarg is not specified. At the same time, lz4 has some gnarly code to manually check the return code and raise an error if it failed. Kill two birds with one stone, by making run_command inherently raise a fatal error when erroring out, then proceeding in the knowledge that it must have succeeded.
* | | Merge pull request #1054 from mcfi/patch-1Yann Collet2022-01-271-1/+6
|\ \ \ | |/ / |/| | Disable _tzcnt_u64 for ARM64EC
| * | Add commentsBen Niu2022-01-271-0/+5
| | |
| * | Disable _tzcnt_u64 for ARM64ECBen Niu2022-01-271-1/+1
|/ / | | | | The ARM64EC is a new Microsoft-designed ARM64 ABI that is compatible with AMD64 code. However, not all AMD64 intrinsic functions are supported. For, intrinsics that are lowered to AVX, AVX2 and AVX512 instructions are not supported, including the _tzcnt_u64. To make sure this file compiles for ARM64EC, the use of _tzcnt_u64 should be neutered.