BUG/MINOR: http: Missing calloc return value check while parsing tcp-request rule
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 17 May 2021 08:08:16 +0000 (10:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:51:02 +0000 (10:51 +0200)
commit8cb033643ff3235ac0d3887167ce06fefeaf850b
treed0afe2f527bb4016b1ce6319cc0c92efaa363ed8
parent2ca42b4656f60655a5295a66f321239faee2d9fe
BUG/MINOR: http: Missing calloc return value check while parsing tcp-request rule

A memory allocation failure happening in tcp_parse_request_rule while
processing the "capture" keyword and trying to allocate 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/tcp_rules.c