]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http_ana: Be sure to have an allocated buffer to generate an error
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jul 2019 14:41:43 +0000 (16:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Jul 2019 12:58:23 +0000 (14:58 +0200)
commit9f5839cde27b353446f77c96c5de8068a6228a2a
tree6c7ac0419ea2eeaf52d8a87fc8ccaecbe8607b95
parentef91c939f364367bdc48f1b234c138d743abf56c
BUG/MINOR: http_ana: Be sure to have an allocated buffer to generate an error

In http_reply_and_close() and http_server_error(), we must be sure to have an
allocated buffer (buf.size > 0) to consider it as a valid HTX message. For now,
there is no way to hit this bug. But a fix to support "empty" error messages in
HTX is pending. Such empty messages, after parsing, will be converted into
unallocated buffer (buf.size == 0).

This patch must be backported to 2.0 and 1.9. owever, the patch will have to be
adapted.
src/http_ana.c