]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "BUG/MINOR: config: don't count trailing spaces as empty arg"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Sep 2022 16:22:23 +0000 (18:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Sep 2022 16:40:50 +0000 (18:40 +0200)
commitc5daf2801a76ed56743c25fb6a35dee77440c6bc
treed6d4543d95686a758a59f14f6010697c3eb1ec3b
parent5529424ef1c9aae4ca714a99ffca2082e533781f
Revert "BUG/MINOR: config: don't count trailing spaces as empty arg"

This reverts commit 5529424ef1c9aae4ca714a99ffca2082e533781f.

Since this patch, HAProxy crashes when the first line of the configuration
file contains more than one parameter because, on the first call of
parse_line(), the output line is not allocated. Thus elements in the
arguments array may point on invalid memory area.

It may be considered as a bug to reference invalid memory area and should be
fixed. But for now, it is safer to revert this patch

If the reverted commit is backported, this one must be backported too.
src/tools.c