BUG/MINOR: http: Missing calloc return value check in make_arg_list
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 19 May 2021 10:00:54 +0000 (12:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:51:09 +0000 (10:51 +0200)
commit17acbab0ac5933205788eb0a134f9e918247efef
tree076c22968ad63c4030e875e043492573d8e94f29
parentb6864a5b6fa1ea6eb224710d00c897105b9e2a46
BUG/MINOR: http: Missing calloc return value check in make_arg_list

A memory allocation failure happening in make_arg_list when trying to
allocate the argument list would have resulted in a crash. This function
is only called during configuration parsing.

It was raised in GitHub issue #1233.
It could be backported to all stable branches.
src/arg.c