basic: use assert_se in alloca_safe()

Ensure it cannot get compiled out regardless of build options

Follow-up for 9e1a759903

Assisted-by: kres (claude-opus-4-7)
This commit is contained in:
Luca Boccassi
2026-06-12 11:21:58 +02:00
committed by Frantisek Sumsal
parent ff88bc06b4
commit 272200b0fb
+1 -1
View File
@@ -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_); \
}) \