]> git.kaiwu.me - nginx.git/commit
Gzip: compatibility with recent zlib-ng versions.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 27 Mar 2023 18:25:05 +0000 (21:25 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 27 Mar 2023 18:25:05 +0000 (21:25 +0300)
commit87471918b20957694cb7a7503d2f868c8813c68b
treeb8bfaf4e73cd4e5148b332fada23f95d199e9ad7
parent7b24b93d67daa9c16d665129fd5d3e7dbc583e4f
Gzip: compatibility with recent zlib-ng versions.

It now uses custom alloc_aligned() wrapper for all allocations,
therefore all allocations are larger than expected by (64 + sizeof(void*)).
Further, they are seen as allocations of 1 element.  Relevant calculations
were adjusted to reflect this, and state allocation is now protected
with a flag to avoid misinterpreting other allocations as the zlib
deflate_state allocation.

Further, it no longer forces window bits to 13 on compression level 1,
so the comment was adjusted to reflect this.
src/http/modules/ngx_http_gzip_filter_module.c