]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse: Abort parsing the current line if an invalid \x sequence is...
authorTim Duesterhus <tim@bastelstu.be>
Thu, 7 May 2020 17:21:31 +0000 (19:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 May 2020 20:46:25 +0000 (22:46 +0200)
commite6291956e7ad622dd2e4ac864caf05c93db417d3
tree5d294f80ef207964719cbc23857d8a0e45b96557
parentf1dccedcf63fdc1f6117cafaac89948904cc75b9
BUG/MINOR: cfgparse: Abort parsing the current line if an invalid \x sequence is encountered

This fixes OSS Fuzz issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21931.

OSS Fuzz detected a hang on configuration parsing for a 200kB line with a large number of
invalid escape sequences. Most likely due to the amounts of error output generated.

This issue is very minor, because usually generated configurations are to be trusted.

The bug exists since at the very least HAProxy 1.4. The patch may be backported if desired.
src/cfgparse.c