]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: Reinforce validity check when a process number is parsed
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Feb 2019 15:29:41 +0000 (16:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Feb 2019 20:23:58 +0000 (21:23 +0100)
commit18cca781f5384f060704ad80018d80bdd4e01e76
treea324f689fb1ece477ab415fb23b3dbc50460e73a
parent11389018bc92bf7b94533e682af5cb4bbf0e43d9
BUG/MINOR: config: Reinforce validity check when a process number is parsed

Now, in the function parse_process_number(), when a process number or a set of
processes is parsed, an error is triggered if an invalid character is found. It
means following syntaxes are not forbidden and will emit an alert during the
HAProxy startup:

  1a
  1/2
  1-2-3

This bug was reported on Github. See issue #36.

This patch may be backported to 1.9 and 1.8.
src/cfgparse.c