An incorrect buffer size calculation vulnerability exists...
High severity
Unreviewed
Published
Sep 24, 2026
to the GitHub Advisory Database
•
Updated Oct 6, 2026
Description
Published by the National Vulnerability Database
Sep 24, 2026
Published to the GitHub Advisory Database
Sep 24, 2026
Last updated
Oct 6, 2026
An incorrect buffer size calculation vulnerability exists in tinyexpr commit 4a7456e in new_expr(). For arity-0 expression nodes, including constants, variables, and zero-argument functions, the function allocates less memory than sizeof(te_expr) but treats the returned allocation as a complete te_expr object. This results in undefined behavior and can cause deterministic process termination in UBSan-instrumented builds.
References