]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: accept full buffers on smp_prefetch_http
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Oct 2013 20:41:30 +0000 (22:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Oct 2013 20:47:00 +0000 (22:47 +0200)
commit472b1ee115f45129ea3fc19e26f85b3ec9715abe
tree5881345446a47a7884e0a711f0fe307a0f39fb91
parented5a4aefaee68e1046a55218be7853739e3484c0
BUG/MEDIUM: http: accept full buffers on smp_prefetch_http

Bertrand Jacquin reported a but when using tcp_request content rules
on large POST HTTP requests. The issue is that smp_prefetch_http()
first tries to validate an input buffer, but only if the buffer is
not full. This test is wrong since it must only be performed after
the parsing has failed, otherwise we don't accept POST requests which
fill the buffer as valid HTTP requests.

This bug is 1.5-specific, no backport needed.
src/proto_http.c