]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: fix several off-by-one errors in the url_param parser
authorWilly Tarreau <w@1wt.eu>
Sun, 27 Dec 2015 13:51:01 +0000 (14:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Dec 2015 13:51:01 +0000 (14:51 +0100)
commitf66258237cc5ea48448836c4296c222b325e5dcb
tree39e1b69f99137f87fd445425b75e7f0de2c9b7c0
parent8db004cbf49ea2bd8da736928bf6bc2fbe71fdf1
BUG/MINOR: http: fix several off-by-one errors in the url_param parser

Several cases of "<=" instead of "<" were found in the url_param parser,
mostly affecting the case where the parameter is wrapping. They shouldn't
affect header operations, just body parsing in a wrapped pipelined request.

The code is a bit complicated with certain operations done multiple times
in multiple functions, so it's not sure others are not left. This code
must be re-audited.

It should only be backported to 1.6 once carefully tested, because it is
possible that other bugs relied on these ones.
src/proto_http.c