]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: Warn on truncated lines / files
authorTim Duesterhus <tim@bastelstu.be>
Mon, 22 Jun 2020 20:57:45 +0000 (22:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jun 2020 03:14:59 +0000 (05:14 +0200)
commit2fd5bdb439da29f15381aeb57c51327ba57674fc
treebfe2944fa63b977c01e7a9209e02b233e6f90eaa
parent70f58997f47e8ed48fe9ec517d80a32c8d575bc0
MINOR: cfgparse: Warn on truncated lines / files

As discussed on the list: https://www.mail-archive.com/haproxy@formilux.org/msg37698.html

This patch adds warnings to the configuration parser that detect the
following situations:

- A line being truncated by a null byte in the middle.
- A file not ending in a new line (and possibly being truncated).
src/cfgparse.c