]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: arg: report an error if an argument is larger than bufsize
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Feb 2020 13:54:28 +0000 (14:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Feb 2020 13:54:28 +0000 (14:54 +0100)
commit807aef8a143638b7f6c88aa1008544a835806858
treeff8493bb23e6c4f0268a24a2ac8083f182099ed6
parentcd0d2ed6ee932e0d86b8fbaf5fcb97d9530bf260
BUG/MINOR: arg: report an error if an argument is larger than bufsize

Commit ef21facd99 ("MEDIUM: arg: make make_arg_list() support quotes
in arguments") removed the chunk_strncpy() to fill the trash buffer
as the input is being parsed, and accidently dropped the jump to the
error path in case the argument is too large, which is now fixed.

No backport is needed, this is for 2.2. This addresses issue #502.
src/arg.c