]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cache/stats: Handle inbuf allocation failure in the I/O handler
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2024 12:36:47 +0000 (14:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2024 13:00:04 +0000 (15:00 +0200)
commitaaa72e06e5e996a1eecaef6597ca5543b220f7d4
tree2764e863d19be3f1ba10ed6b13ac8b692b43027b
parent0797e05d9f0577d9239d4265667ea536a2439db0
BUG/MEDIUM: cache/stats: Handle inbuf allocation failure in the I/O handler

When cache and stats applets were changed to use their own buffers, a change
was also performed to no longer access the stream from the I/O
handller. Among other things, the HTTP start-line of the request is now
retrieved to get the method. But, when these changes were brought, the inbuf
buffer allocation failures were not handled.

It is of course not so common. But if this happens, a crash may be
experienced. To fix the issue, we now check for inbuf allocation failures
before accessing it.

No backported needed.
src/cache.c
src/stats.c