]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: haterm: Fix a possible integer overflow on the request body length
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 13:54:21 +0000 (15:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:54:16 +0000 (18:54 +0200)
commit999d71560d9487d8b5782b5c4ec8d6cd56e97935
tree82e28256c18fd6c92811343e24bdb2fac5ef580f
parent3f7b2023c9e8a8d4e130e8fcdae392060add3fb8
BUG/MINOR: haterm: Fix a possible integer overflow on the request body length

When request data were received, the request body length was decremented
accordingly with no check on it to be sure it was set. However, it remains
equal to 0 for chunked requests or H2/H3 requests with no content-length.

So now, it is only decremented when it is greater than 0.
src/haterm.c