You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On nginx 1.26.2 with zlib-ng 2.2.2, I get "gzip filter failed to use preallocated memory" errors in the log.
I'm guessing the previous workarounds for zlib-ng have since broken.
The downside to this is that decompression will now always allocate the maximum required memory (~42KB total on 64-bit platforms), previously it would allocate (and potentially free) memory as needed during decompression.
It also means that applications that replace the alloc/free functions with their own can potentially have some issues (Yes I am looking at you Nginx).
So I'm guessing the issue applies to all zlib-ng >= 2.2.0.