Skip to content

Update bundled libraries to lz4 1.10.0#307

Open
clintonsteiner wants to merge 1 commit intopython-lz4:masterfrom
clintonsteiner:updateLz4To1.10.0
Open

Update bundled libraries to lz4 1.10.0#307
clintonsteiner wants to merge 1 commit intopython-lz4:masterfrom
clintonsteiner:updateLz4To1.10.0

Conversation

@clintonsteiner
Copy link

No description provided.

@ypnos
Copy link

ypnos commented Oct 23, 2025

If it helps, I checked the files against the upstream release v1.10.0.

This is the result of sha1sum comparison:

-f5fe71d902fd00b17e3b965be00348e0672f5ff3  lz4.c
+267c61e8579c163444bcf3ffc932cd4b26fa44e2  lz4.c
 35855ab96a45eccda2009fc6b06462dd02bf0972  lz4.h
 9e2260dc04f3349b75bacd1508297de23be46f35  lz4frame.c
 f04bdb7ae139c6c49a2c283dc5e3a2c96b41d7d4  lz4frame.h
 03cc07c28a78ff09cc86983aeb6e45c5f37ad398  lz4frame_static.h
 9393e5cb8b6426d0dff30a856409f7757c7609df  lz4hc.c
 653dbe3acadbbc8533e6b3133ae420ddb626fd0b  lz4hc.h
 1ef2afee6c3e829285e2d63a648bd3698d91d68b  xxhash.c
 420605ab9ad0b00173818abafeed4c6677f5a48e  xxhash.h

The difference in lz4.c is a whitespace error:

--- lz4-1.10.0/lib/lz4.c	2024-07-21 19:29:49.000000000 +0200
+++ lz4libs/lz4.c	2025-10-23 19:45:20.349760278 +0200
@@ -2685,7 +2685,7 @@
         if (result <= 0) return result;
         lz4sd->prefixSize = (size_t)originalSize;
         lz4sd->prefixEnd = (BYTE*)dest + originalSize;
-    } else if (lz4sd->prefixEnd == (BYTE*)dest) {
+} else if (lz4sd->prefixEnd == (BYTE*)dest) {
         DEBUGLOG(5, "continue using existing prefix");
         result = LZ4_decompress_unsafe_generic(
                         (const BYTE*)source, (BYTE*)dest, originalSize,

I suggest to rectify this so the sources are indeed 100% from the upstream release.

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.

2 participants