BUG/MINOR: http: Missing calloc return value check while parsing tcp-request/tcp...
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 16:24:18 +0000 (18:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:51:00 +0000 (10:51 +0200)
commit2ca42b4656f60655a5295a66f321239faee2d9fe
tree0c8978a620345a1f927da77706b639401058c68b
parent18a82ba690a6ff4adbf9702cefa6dc89eb36372d
BUG/MINOR: http: Missing calloc return value check while parsing tcp-request/tcp-response

A memory allocation failure happening in tcp_parse_tcp_req or
tcp_parse_tcp_rep when trying to allocate an act_rule structure 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/tcp_rules.c