From 272200b0fb35eeff13a78aa966bf7e8a28cbe097 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 11 Jun 2026 20:12:57 +0100 Subject: [PATCH] basic: use assert_se in alloca_safe() Ensure it cannot get compiled out regardless of build options Follow-up for 9e1a759903a3ff9943334d25de19b06afc40c11e Assisted-by: kres (claude-opus-4-7) --- src/basic/alloc-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/alloc-util.h b/src/basic/alloc-util.h index 2c40c4771c..a3e2321b30 100644 --- a/src/basic/alloc-util.h +++ b/src/basic/alloc-util.h @@ -21,7 +21,7 @@ #define alloca_safe(n) \ ({ \ size_t _nn_ = (n); \ - assert(_nn_ <= ALLOCA_MAX); \ + assert_se(_nn_ <= ALLOCA_MAX); \ alloca(_nn_ == 0 ? 1 : _nn_); \ }) \