]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: don't dump debug headers on MSG_ERROR
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Oct 2014 17:36:09 +0000 (19:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Oct 2014 17:25:09 +0000 (19:25 +0200)
commit7d59e90473bbf3995ef11d146a7a4cf5c6d0c4b9
tree25b2d93099e918cfd7b35955b52d62adbb39c147
parent23d5d378d008eaf31c17657eb8020b1462f42280
BUG/MEDIUM: http: don't dump debug headers on MSG_ERROR

When the HTTP parser is in state HTTP_MSG_ERROR, we don't know if it was
already initialized or not. If the error happens before HTTP_MSG_RQBEFORE,
random offsets might be present and we don't want to display such random
strings in debug mode.

While it's theorically possible to randomly crash the process when running
in debug mode here, this bug was not tagged MAJOR because it would not
make sense to run in debug mode in production.

This fix must be backported to 1.5 and 1.4.
src/proto_http.c