]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: Missing calloc return value check while parsing redirect rule
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 19 May 2021 09:32:04 +0000 (11:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:51:08 +0000 (10:51 +0200)
commitb6864a5b6fa1ea6eb224710d00c897105b9e2a46
treeb40e30b2674a518b121a31684f58a410c17f357b
parent1f4fa906c73e61dba74f9e8b762da12df3052f57
BUG/MINOR: http: Missing calloc return value check while parsing redirect rule

A memory allocation failure happening in http_parse_redirect_rule when
trying to allocate a redirect_rule 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_rules.c