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 13:31:43 +0000 (15:31 +0200)
commit85fb11e5f19e9050050dda1b5b27975b096d7481
tree7346729cf1a8b0099b02f48b72056003861651f7
parent9b636961a1196478f2b86275ae1775c689ac5aba
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.

(cherry picked from commit 17acbab0ac5933205788eb0a134f9e918247efef)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6d303d66057957dead2b26e8cd865cd30054902d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/arg.c