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>
const char *parse_size_err(const char *text, unsigned *ret) {
unsigned value = 0;
+ if (!isdigit((unsigned char)*text))
+ return text;
+
while (1) {
unsigned int j;