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 08:35:19 +0000 (09:35 +0100)
commit7f955e66b93625ad405405f10bd51b94ffff72fe
tree9eaa3d4a6d5363d98fec42dc6795fc225496b821
parent761d1fb53d20b75f403c1b2032649fcab0e7f280
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>
src/tools.c