BUG/MINOR: http: Missing calloc return value check in parse_http_req_capture
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 15:54:17 +0000 (17:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:50:55 +0000 (10:50 +0200)
commita4bf8a059dd9c783c00680aedcf055faa4b5d784
tree3b1ed4a65a190dc1a519d39dbb54815b0d6e56f4
parent612b2c37be70636e73698c6c064af9522301be65
BUG/MINOR: http: Missing calloc return value check in parse_http_req_capture

A memory allocation failure happening in parse_http_req_capture while
processing a "len" 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/http_act.c