]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse: Check if tune.http.maxhdr is in the range 1..32767
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Jun 2017 14:31:35 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Jun 2017 15:18:59 +0000 (17:18 +0200)
commit50174f36003141297a4824dd0b98a2f0e6d4997d
treeb090525a38c2024d36ee2fa4212afb6415aa51fb
parent5d6e5f86c51cef6c22c6aeacc6b0e528f8fe58e9
BUG/MINOR: cfgparse: Check if tune.http.maxhdr is in the range 1..32767

We cannot store more than 32K headers in the structure hdr_idx, because
internaly we use signed short integers. To avoid any bugs (due to an integers
overflow), a check has been added on tune.http.maxhdr to be sure to not set a
value greater than 32767 and lower than 1 (because this is a nonsense to set
this parameter to a value <= 0).

The documentation has been updated accordingly.

This patch can be backported in 1.7, 1.6 and 1.5.
doc/configuration.txt
src/cfgparse.c