]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cfgparse-global: add missing calloc() check for the global description
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:37:58 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:22:33 +0000 (09:22 +0200)
commitfa138a0c22cc3c7a2fcb051dec378e0a20bc4a46
tree4cc826afa3049e7f16c457afe6beba5f2645dbc4
parent6a770228976b5463dbbbc70a39f784a02864ef54
BUG/MINOR: cfgparse-global: add missing calloc() check for the global description

The global "description" keyword passes the result of calloc() directly to
snprintf() without checking it, resulting in a crash instead of an error
message if the allocation fails.

This may be backported to all supported versions.
src/cfgparse-global.c