]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: log-format: fix possible endless loop in parse_logformat_string()
authorDragan Dosen <ddosen@haproxy.com>
Tue, 30 Jun 2020 19:16:43 +0000 (21:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 04:30:50 +0000 (06:30 +0200)
commit2866acfb2361dc4416faeaaf45401e083651d6a2
treeefc04a7212af174ced66140a8a185b699f53866e
parentb4cf7ab9bc413bbb956e225f903959bff17e4049
BUG/MEDIUM: log-format: fix possible endless loop in parse_logformat_string()

This patch adds a missing break to end the loop in case when '%[' is not
properly closed with ']'.

The issue has been introduced with commit cd0d2ed ("MEDIUM: log-format:
make the LF parser aware of sample expressions' end").
src/log.c