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:
committed by
Frantisek Sumsal
parent
ff88bc06b4
commit
272200b0fb
@@ -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_); \
|
||||
}) \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user