Opened 3 weeks ago
Closed 11 days ago
#6068 closed enhancement (fixed)
lz4-1.11.1
| Reported by: | Bruce Dubbs | Owned by: | lfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 13.2 |
| Component: | Book | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
New minor version.
Change History (6)
comment:1 by , 3 weeks ago
comment:2 by , 3 weeks ago
I submitted the BUILD_STATIC=no fix as https://github.com/lz4/lz4/pull/2068.
For zstd sed 's/contentChecksum_t/LZ4F_&/' -i programs/fileio.c is enough as discussed in https://github.com/meta/zstd/issues/4897.
comment:3 by , 2 weeks ago
| Summary: | lz4-1.11.0 → lz4-1.11.0 (wait for 1.11.1) |
|---|
1.11.1 will include the fix for BUILD_STATIC and the compatibility with unfixed zstd, see https://github.com/lz4/lz4/pull/2080.
comment:5 by , 11 days ago
v1.11.1
fix : LZ4_resetStreamHC() could write out of bounds
at levels >= 10, on a state containing garbage (since v1.11.0)
perf : faster decompression on ppc64 (+12% to +24% on silesia),
LZ4_FAST_DEC_LOOP enabled
perf : lz4 -l compresses small files up to 10x faster :
no more threads than blocks
api : restored the unprefixed lz4frame enums and types
(LZ4F_ENABLE_OBSOLETE_ENUMS), employed by zstd,
now deprecated (compilation warning)
cli : help (-h, -H, --help) outputs to stdout
cli : --list reads standard input again (since v1.10.0)
cli : various fixes (--list, --stdout, --force,
multiple inputs, Windows pipes, modification time, output creation)
build: lz4file.h usable from cmake (since v1.10.0) and meson installations
build: MinGW builds with clang and lld (since v1.11.0)
build: make with BUILD_STATIC=no or BUILD_SHARED=no
(since v1.11.0), by @xry111
v1.11.0
fix : data corruption in valid usage : ring buffer decoding
(LZ4_decoderRingBufferSize(), since v1.9.0),
rare cases of streaming or destSize compression
fix : single-thread lz4 could truncate the decoding of
concatenated frames with block checksums
fix : multithreaded decompression could write out of bounds after 231 frames (since v1.10.0)
fix : LZ4F_compressBegin_usingDict() ignored the dictionary
with independent blocks
fix : some periodic data compressed up to 30x worse at fast levels, and very slowly at level 12
fix : invalid arguments (negative sizes, NULL, invalid blockSizeID,
extreme levels) no longer crash nor overflow
fix : lz4file reports truncated files and write failures, and accepts files < 19 bytes
perf : faster decompression on aarch64 and x86-64 (up to +19%, +4% on silesia.tar), LZ4_FAST_DEC_LOOP on aarch64 with clang and on riscv64
perf : faster compression of small blocks at fast levels, with reused states (up to +80%) or dictionaries (up to +35%), partly proposed
perf : faster levels 11 and 12 (+8% to +27%), level 2 compresses ~0.8% better
perf : x86 builds avoid the JCC erratum : up to +12% compression and +31% decompression on Intel Skylake-family cpus
api : multithreaded lz4frame compression (experimental
LZ4F_preferences_t.nbWorkers) : output independent of the nb of
workers and of the context's history
api : random access within frames and lz4 files : LZ4F_resumeFrame(),
LZ4F_seek(), LZ4F_tell() (static)
api : LZ4_decompress_safe() returns distinct error codes : -1
malformed input, -2 dstCapacity too small, -3 missing dictionary
api : lz4frame compression accepts any dstCapacity, and only fails
if the output doesn't fit
api : removed from headers : functions deprecated since v1.7.x / v1.8.0 (still exported by liblz4), unprefixed lz4frame enums ; LZ4_resetStream() and LZ4_resetStreamHC() are deprecated
api : LZ4F_compressOptions_t must be zero-initialized ; reserved fields are scalars (flatten positional initializers) ; LZ4F_uncompressedUpdate() deprecated (use .uncompressed)
api : custom allocators for lz4file (_advanced() functions),
LZ4_USER_MEMORY_FUNCTIONS also for lz4frame and lz4file ;
LZ4F_cctx_size() and LZ4F_dctx_size()
api : HC states include the buffer of levels 10+ (+64 KB per state) : no allocation during compression
cli : multithreaded compression relies on liblz4 : same output with
any nb of threads and without multithreading support ;
-T# within a memory budget (--memory=#) ; new --single-thread
cli : decodes Firefox's mozlz4 files, proposed by @UnitedMarsupials, and legacy frames with the Linux kernel end marker
cli : safer file handling : an output identical to the input is refused,
a source modified during compression is detected,
--rm keeps the source after failures
cli : benchmark (-b) measures frames, compressed as lz4 does with the same options
cli : various fixes (--list, legacy format, benchmark, -t -m,
numeric arguments)
build: dynamic library multithreaded by default, static library
single-threaded ; cmake lz4 multithreaded
build: cmake : exported lz4::lz4 target
build: cmake : as a subproject, the lz4 program is no longer built
by default (-DLZ4_BUILD_CLI=ON restores it)
build: reproducible static library by @rpurdie, AIX support
port : RISC-V with Zicclsm uses unaligned memory accesses

I'm seeing 2 issues with this so far.
make BUILD_STATIC=no PREFIX=/usr bombs with:
Removing BUILD_STATIC=no gets it to build. It's needed for make install to prevent the static lib from being installed.
zstd bombs when building with this version. See https://github.com/lz4/lz4/issues/2046 Applying the merged PR (https://github.com/lz4/lz4/pull/2053) fixes the issue.