]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acl: Add OOM check for calloc() in smp_fetch_acl_parse()
authorAlexander Stephan <alexander.stephan@sap.com>
Mon, 1 Sep 2025 09:47:30 +0000 (09:47 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Sep 2025 05:29:54 +0000 (07:29 +0200)
commitc3e69cf065c59acbe01db5452f29b7ac199354d5
tree3eacdff23959626627ad93ef714ef790b4491ba8
parent22ac1f5ee9889eb7273201de0d92449d9fc5e3fa
BUG/MINOR: acl: Add OOM check for calloc() in smp_fetch_acl_parse()

This patch adds a missing out-of-memory (OOM) check after
the call to `calloc()` in `smp_fetch_acl_parse()`. If
memory allocation fails, an error message is set and
the function returns 0, improving robustness in
low-memory situations.

Co-authored-by: Christian Norbert Menges <christian.norbert.menges@sap.com>
src/acl.c