]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: arg: fix again incorrect argument length check
authorWilly Tarreau <w@1wt.eu>
Sun, 16 Feb 2020 09:46:37 +0000 (10:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Feb 2020 09:49:55 +0000 (10:49 +0100)
commit9af749b43edd19dc8e2c0145ca378b3893698bda
treebcaaa7a42bf450e62a49562ea299b2345150b6ec
parent6328b73d2884896c48566a375ee83a2155a7f839
BUG/MINOR: arg: fix again incorrect argument length check

Recent commit 807aef8a14 ("BUG/MINOR: arg: report an error if an argument
is larger than bufsize") aimed at fixing the argument length check but
relied on the fact that the end of string was not reached, except that
it forgot to consider the delimiters (comma and parenthesis) which are
valid conditions to break out of the loop. This used to break simple
expressions like "hdr(xff,1)". Thanks to Jérôme for reporting this.

No backport is needed.
src/arg.c