BUG/MINOR: tools: Reject size format not starting by a digit
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Dec 2020 08:30:45 +0000 (09:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 10:50:26 +0000 (11:50 +0100)
commitfd188ab5dbed4c626c5c877e212ad922108f1346
tree5f020478bff9e390665b9aef73eea009c83e6f8e
parent7ea3c0e533025e3c2685a2503b33dbc964363c17
BUG/MINOR: tools: Reject size format not starting by a digit

parse_size_err() function is now more strict on the size format. The first
character must be a digit. Otherwise an error is returned. Thus "size k" is
now rejected.

This patch must be backported to all stable versions.

(cherry picked from commit 82635a0fc1d8196e5b199e2948d2bea4b1217ace)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7f955e66b93625ad405405f10bd51b94ffff72fe)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9a1194430a7d3a967c75775a801e99303b85dbc3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/standard.c