-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zlib] Bump to upstream 1.2.12 #68219
Conversation
Cherrypick crc32 fix to restore pre-1.2.12 behavior madler/zlib@ec3df00 > The previous releases of zlib were not sensitive to incorrect CRC > inputs with bits set above the low 32. This commit restores that > behavior, so that applications with such bugs will continue to > operate as before.
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue DetailsAlso cherrypick madler/zlib@ec3df00 to restore pre-1.2.12 behavior:
|
Do we have a way of keeping track of patches we apply to zlib? Should we just wait for 1.2.12.1? |
Look for the .txt files under https://github.com/dotnet/runtime/tree/main/src/native/external |
Thanks! Yes the -version.txt files help during such upgrades. The build errors are upstream issue: madler/zlib#633. We can workaround it (by explicitly adding prototypes in zlib.h) or wait until it is properly fixed in upstream. Note that in libraries, we use this zlib on Windows arm{64} and zlib-intel on Windows x{86,64}. Could you please try to collect some numbers from dotnet/performance#2152 on Windows arm64 system? ps - I think plan is to try to replace both implementations with a single copy of nextgen https://github.com/zlib-ng/zlib-ng (which apparently captures optimizations from other two variants and add SIMD sauce on top), validate the performance impact on supported platforms and then switch all platforms to that (currently on Unix |
I think I'd prefer waiting until it's fixed upstream. 1.2.12 seems not fully ready, to be honest. I think a 1.2.12.1 release is probably imminent. |
Turned off warnings as errors for Bumped zlib-intel to v1.2.12_jtk and also cherrypicked the vanilla zlib crc32 fix to zlib-intel (it applied cleanly). |
set_source_files_properties only has an effect in the "current CMakeLists.txt" (ie not across an `add_subdirectory` call) which was an issue for mono/mini/CMakeLists.txt
32-bit Windows builds are unhappy because of madler/zlib#631 (comment) |
Tagging subscribers to this area: @dotnet/area-system-io-compression Issue DetailsAlso cherrypick madler/zlib@ec3df00 to restore pre-1.2.12 behavior:
Also bump zlib-intel to https://github.com/jtkukunas/zlib/tree/v1.2.12_jtk and cherrypick vanilla zlib crc32 fix (above) tozlib-intel.
|
Latest dotnet runtime 6 is 6.0.5 currently. Can I expect to get zlib bumped to 1.2.12 in coming 6.0.6 release? |
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
Also cherrypick madler/zlib@ec3df00 to restore pre-1.2.12 behavior:
Also bump zlib-intel to https://github.com/jtkukunas/zlib/tree/v1.2.12_jtk and cherrypick vanilla zlib crc32 fix (above) tozlib-intel.