]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: compression: Missing calloc return value check in comp_append_type/algo
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 17 May 2021 08:35:08 +0000 (10:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:51:04 +0000 (10:51 +0200)
commit6443bcc2e1f2e1e11af76ef460d8241f06223de8
treed6f2a46ec991f0779e3536b179b62fef6e86e5d1
parent8cb033643ff3235ac0d3887167ce06fefeaf850b
BUG/MINOR: compression: Missing calloc return value check in comp_append_type/algo

A memory allocation failure happening in comp_append_type or
comp_append_algo called while parsing compression options would have
resulted in a crash. These functions are only called during
configuration parsing.

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