]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: tools: off-by-one in quote_arg()
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 01:14:42 +0000 (02:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:19 +0000 (16:19 +0100)
commitde2dd6b1250579c46ff085d8dad760d6d5ca9407
treed606d375c44e69dcfe1708208eef5dff896c3a90
parent1a53b5ef583988ca0405007f3ef47d2114da9546
BUG/MEDIUM: tools: off-by-one in quote_arg()

This function may write the \0 one char too far in the static array.
There is no effect right now as the function has never been used except
maybe in code that was never released. Out-of-tree code might possibly
be affected though (hence the MEDIUM flag).

No backport is needed.

Reported-by: Dinko Korunic <dkorunic@reflected.net>
src/standard.c