]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: filters: avoid NULL block access in decompression
authorAdam Crawford <adamcrawford253@gmail.com>
Thu, 5 Nov 2026 23:32:47 +0000 (17:32 -0600)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Nov 2026 10:10:56 +0000 (11:10 +0100)
commit2e2de896c361e3be61233d19e9d7c8246bdc2645
tree7b5f568303662d627b4d4b8adc909eddc6c8841b
parent7c36f6c0db4e19541e7ed0f77f2248bc487374c5
BUG/MEDIUM: filters: avoid NULL block access in decompression

The decompression filter may end up with a NULL block pointer when
processing an empty request. If no replacement block is provided,
htx_get_next_blk() is called with this NULL pointer, causing HAProxy
to crash.

Only advance to the next block if the current block pointer is valid.

This was introduced 3.5-dev, no backport needed.
src/flt_decomp.c