Skip to content

Update lz4 to 1.11.1 - #181

Merged
yawkat merged 1 commit into
mainfrom
claude/lz4-v1-11-1-eval-a1c6d8
Nov 10, 2026
Merged

yawkat merged 1 commit into
mainfrom
claude/lz4-v1-11-1-eval-a1c6d8

Conversation

@yawkat

@yawkat yawkat commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Updates the src/lz4 submodule from v1.11.0 to v1.11.1.

Library changes in lz4.c / lz4hc.c between the two tags, and what they mean for lz4-java:

  • LZ4_resetStreamHC() out-of-bounds write fix (levels >= 10, on a state containing garbage). Does not affect lz4-java: the JNI layer never calls LZ4_resetStreamHC(). HC states come from LZ4_createStreamHC() (zero-allocated, extended size) and are reused via LZ4_compress_HC_extStateHC_fastReset(), which uses LZ4_resetStreamHC_fast(). The one-shot LZ4_compress_HC() initializes its state with LZ4_initStreamHC().
  • ppc64: LZ4_FAST_DEC_LOOP and LZ4_wildCopy64 enabled. Upstream reports +12–24% decompression speed on silesia; applies to the shipped linux/ppc64le native.
  • HC stack mode when LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION is set. Not used by lz4-java.

The remaining release changes are CLI, frame format and build-system fixes, none of which are compiled into lz4-java.

Tested locally on linux/amd64: ./mvnw verify with the JNI library rebuilt from the new sources — 4105 tests, 0 failures.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yawkat
yawkat merged commit a786d21 into main Nov 10, 2026
3 checks passed
@yawkat
yawkat deleted the claude/lz4-v1-11-1-eval-a1c6d8 branch November 10, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant