summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* improve LZ4F_decompress() documentationElliot Gorokhovsky2023-02-031-0/+5
|
* Merge pull request #1206 from tristan957/mesonYann Collet2023-01-301-5/+11
|\ | | | | Clean up generation of internal static library
| * Clean up generation of internal static libraryTristan Partin2023-01-101-5/+11
|/ | | | | No sense in relinking if the default_library indicates that a static library was already generated.
* Merge pull request #1204 from DimitriPapadopoulos/codespellYann Collet2023-01-081-1/+1
|\ | | | | Fix typo found by codespell
| * Fix typo found by codespellDimitri Papadopoulos2023-01-081-1/+1
|/
* version noteYann Collet2022-12-191-1/+1
|
* Merge pull request #1184 from tristan957/mesonYann Collet2022-12-052-6/+8
|\ | | | | Meson updates
| * Install lz4file.h only when default_library isn't sharedTristan Partin2022-12-021-4/+3
| |
| * Only build the freestanding test on Linux x86_64Tristan Partin2022-12-021-2/+3
| |
| * Add Meson override for the libraryTristan Partin2022-12-021-0/+2
| |
* | Merge pull request #1175 from lz4/usan32Yann Collet2022-12-032-6/+6
|\ \ | | | | | | fixed usan32 tests
| * | fixed usan32 testsYann Collet2022-10-012-6/+6
| | | | | | | | | | | | | | | the sanitizer was not enabled, due to environment variables not being passed.
* | | Merge pull request #1178 from alexmohr/allow-uncompressed-block-for-all-modesYann Collet2022-12-031-1/+0
|\ \ \ | | | | | | | | uncompressed-blocks: Allow uncompressed blocks for all modes
| * | | uncompressed-blocks: Allow uncompressed blocks for all modesAlexander Mohr2022-10-101-1/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | this commit changes that uncompressed blocks are only available for independent blocks. Building and updating the dictionary from an uncompressed block has no adverse side effects. Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
* | | Merge pull request #1188 from x4m/static_functionYann Collet2022-12-031-1/+1
|\ \ \ | |_|/ |/| | Declare read_long_length_no_check() static
| * | Declare read_long_length_no_check() staticAndrey Borodin2022-11-101-1/+1
| | | | | | | | | | | | Fix #1176
* | | Merge pull request #1187 from t-mat/pr-issue-1186Yann Collet2022-12-022-4/+34
|\ \ \ | | | | | | | | Add environment check for freestanding test : resolves #1186
| * | | Add environment check for freestanding testTakayuki Matsuoka2022-11-092-4/+34
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Freestanding test is intended to run on only Linux x86_64 platform. Because it uses Linux x86_64 syscall directly to avoid any dependency to the standard library. This changeset adds platform checking code to tests/Makefile to avoid unintended error in non-Linux x86_64 platforms. This changeset resolves issue #1186
* | | Merge pull request #1196 from t-mat/fix-issue-1195Yann Collet2022-11-301-12/+12
|\ \ \ | | | | | | | | Remove PATH=$(PATH) prefix from all shell script invocation in tests/Makefile
| * | | Remove PATH=$(PATH) prefix from all shell script invocationTakayuki Matsuoka2022-11-291-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When $(PATH) contains ' ' (space, 0x20), this prefix causes error. Also we don't need reconfiguring PATH for each shell script, we don't need them. This changeset fixes issue #1195
* | | | Merge pull request #1197 from t-mat/fix-test-clang-11-12-mx32Yann Collet2022-11-291-2/+2
|\ \ \ \ | |/ / / |/| | | Change the version of lib[x]gcc for clang-(11|12) -mx32
| * | | Change the version of lib[x]gcc for clang-(11|12) -mx32Takayuki Matsuoka2022-11-291-2/+2
|/ / /
* | | Merge pull request #1191 from vsolontsov-volant/install_lz4file_hYann Collet2022-11-241-0/+2
|\ \ \ | | | | | | | | Add copying lz4file.h to make install
| * | | Add copying lz4file.h to make installVladimir Solontsov2022-11-221-0/+2
| |/ /
* | | Merge pull request #1192 from vsolontsov-volant/lz4f_write_const_srcYann Collet2022-11-222-3/+3
|\ \ \ | |/ / |/| | Fixed const-ness of src data pointer in lz4file and install lz4file.h
| * | Fixed const-ness of src data pointer in lz4file and install lz4file.hVladimir Solontsov2022-11-222-3/+3
|/ /
* | Merge pull request #1139 from tristan957/mesonYann Collet2022-10-2523-346/+746
|\ \ | |/ |/| Update Meson build to 1.9.4
| * Update Meson build to 1.9.4Tristan Partin2022-10-2023-346/+746
|/ | | | | | | | | | | | | | | Specifically this adds support for the following options: - LZ4_ALIGN_TEST - LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION - LZ4_DISTANCE_MAX - LZ4_FAST_DEC_LOOP - LZ4_FORCE_SW_BITCOUNT - LZ4_FREESTANDING - LZ4_USER_MEMORY_FUNCTIONS - compiling ossfuzz targets - compiling more test targets - registering some tests
* Merge pull request #1174 from lz4/lz4_ubnullYann Collet2022-10-011-19/+23
|\ | | | | very minor refactor of lz4.c
| * minor refactor of lz4.cYann Collet2022-10-011-19/+23
|/ | | | | | almost no change, functionally equivalent replaced one test by an assert() (since it should always be true)
* Merge pull request #1173 from lz4/md_offYann Collet2022-10-011-107/+104
|\ | | | | LZ4 HC match finder and parsers use direct offset values
| * fix another ubsan warning in lz4hcmd_offYann Collet2022-10-011-1/+1
| | | | | | | | | | | | | | because ubsan complains even about intermediate pointer arithmetic results (in a simple linear formula with 3 factors for example). use parenthesis to make sure calculations go directly from one valid memory address to another valid memory address value.
| * use LZ4HC_match_t structure directly to store match candidatesYann Collet2022-10-011-68/+53
| | | | | | | | | | this formalized better the coupling between match length and match offset which were 2 separated variables before.
| * removed virtual pointer from optimal parserYann Collet2022-09-301-5/+4
| | | | | | | | | | replaced by direct offset value. this virtual pointer was only used in rare _dstSize scenario.
| * removed virtual match pointer from HC parserYann Collet2022-09-301-26/+23
| | | | | | | | replaced by direct offset values.
| * sequence encoder accepts offset as a valueYann Collet2022-09-301-14/+15
| | | | | | | | instead of a virtual pointer
| * LZ4 HC matchfinder returns an offset valueYann Collet2022-09-301-43/+58
|/ | | | instead of a virtual past pointer.
* Merge pull request #1171 from dosaboy/snap-1.9.4Yann Collet2022-09-271-1/+2
|\ | | | | Update snapcraft.yaml to reflect build of v1.9.4
| * Update snapcraft.yaml to reflect build of v1.9.4Edward Hope-Morley2022-09-211-1/+2
| |
* | added code documentation on heap modeYann Collet2022-09-274-15/+46
|/ | | | and also on decompress_continue variants.
* added notes about LZ4_compressFrame() and stack/heap memory usageYann Collet2022-09-202-4/+14
|
* Merge pull request #1169 from lz4/fix_ub485Yann Collet2022-09-171-6/+8
|\ | | | | fix rare ub
| * fix rare ubYann Collet2022-09-171-6/+8
|/ | | | | apparently, accessing the short member of a union still requires enough space for its largest member.
* Merge pull request #1163 from lz4/dict_fillOnIndexYann Collet2022-09-162-31/+39
|\ | | | | remove usages of `base` pointer
| * fixed minor UB warningYann Collet2022-09-161-12/+13
| | | | | | | | now, even intermediate ptr arithmetic results can be UB ??
| * removed a few more usages of base ptrYann Collet2022-09-161-15/+20
| | | | | | | | | | | | | | by making LZ4_putPosition() specific to byPtr strategy. byU32 and byU16 use LZ4_putIndexOnHash() instead. In both cases, it makes it irrelevant to pass` base as reference ptr.
| * remove another usage of baseYann Collet2022-09-161-4/+6
|/ | | | | within `LZ4_loadDict()` function : it's possible to only employ Indexes directly.
* Merge pull request #1168 from lz4/benchDYann Collet2022-09-164-31/+72
|\ | | | | fix benchmark more using Dictionary
| * added test able to catch bug #1167Yann Collet2022-09-152-22/+37
| | | | | | | | also : errors during benchmark mode return an error code.
| * fix benchmark more using DictionaryYann Collet2022-09-153-9/+35
|/ | | | | | | benchmark dictionary mode, implemented in #808, is incorrect. It would desynchronize compression and decompression as soon as 2+ files are dictionary compressed. Also : slightly improved traces system, to also include __LINE__ number