BUG/MINOR: proxy: Missing calloc return value check in proxy_parse_declare
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 16:04:46 +0000 (18:04 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:50:57 +0000 (10:50 +0200)
commit55ba0d6865662036d1d137dc4aac3841d29ad6d3
tree330ca2e6540ebe6d33c80888f932ddf23f820a68
parenta4bf8a059dd9c783c00680aedcf055faa4b5d784
BUG/MINOR: proxy: Missing calloc return value check in proxy_parse_declare

A memory allocation failure happening during proxy_parse_declare while
processing the "capture" keyword and allocating a cap_hdr structure
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/proxy.c