An incorrect buffer size calculation vulnerability exists in tinyexpr commit 4a7456e in newexpr(). For arity-0 expression nodes, including constants, variables, and zero-argument functions, the function allocates less memory than sizeof(teexpr) but treats the returned allocation as a complete teexpr object. This results in undefined behavior and can cause deterministic process termination in UBSan-instrumented builds.