BUG/MINOR: proxy: Missing calloc return value check in proxy_defproxy_cpy
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 16:07:27 +0000 (18:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:50:59 +0000 (10:50 +0200)
commit18a82ba690a6ff4adbf9702cefa6dc89eb36372d
tree0e4b902ffe457cc8726eb88c0ce4c400c1b367b9
parent55ba0d6865662036d1d137dc4aac3841d29ad6d3
BUG/MINOR: proxy: Missing calloc return value check in proxy_defproxy_cpy

A memory allocation failure happening in proxy_defproxy_cpy while
copying the default compression options would have resulted in a crash.
This function is called for every new proxy found while parsing the
configuration.

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