]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http_fetch: Check return values of unchecked buffer operations
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2026 06:55:23 +0000 (08:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:36:04 +0000 (18:36 +0200)
commit9abfbbf0bafaf757488495025df0c5b9e965cae8
tree64f31afbad3a160e66c7d7f1d60d722a455aba82
parent51f8bb46afa042e3b266705068ccce153716994e
BUG/MINOR: http_fetch: Check return values of unchecked buffer operations

Several return value for chunk_istcat() or chunk_memcat() calls were not
tested. Now, 0 is returned on failure.

Concretly, for now, it is unexpected to trigger error because the result
cannot exceed the buffer size. Data are extracted from an HTX message.

At first glance, no reason to backport it.
src/http_fetch.c