]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] config: fix wrong handling of too large argument count
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Nov 2009 20:16:53 +0000 (21:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Dec 2009 12:23:43 +0000 (13:23 +0100)
commit7bb651ec1d0cc124781e93341462507d622f2168
tree8bb619f28a8e33e0e0583895777602b6c90bce33
parentc438242878c8bdabffaef62dd2859920cc3e7d26
[BUG] config: fix wrong handling of too large argument count

Holger Just reported that running ACLs with too many args caused
a segfault during config parsing. This is caused by a wrong test
on argument count. In case of too many arguments on a config line,
the last one was not correctly zeroed. This is now done and we
report the error indicating what part had been truncated.
(cherry picked from commit 3b39c1446b9bd842324e87782a836948a07c25a2)
src/cfgparse.c