]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: Missing calloc return value check in chash_init_server_tree
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 19 May 2021 14:40:28 +0000 (16:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:55:51 +0000 (10:55 +0200)
commit476462010ecc2329e9ecba5afd20f84d9605d809
tree2e9b381a5a804342875463291dfef0712b0fb539
parent17acbab0ac5933205788eb0a134f9e918247efef
BUG/MINOR: proxy: Missing calloc return value check in chash_init_server_tree

A memory allocation failure happening in chash_init_server_tree while
trying to allocate a server's lb_nodes item used in consistent hashing
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.
include/haproxy/lb_chash.h
src/cfgparse.c
src/lb_chash.c