AntiPattern
Unsafe Buffer Size Math
unsafe-buffer-size-math
Buffer sizing and string construction rely on incorrect or unverifiable length arithmetic—off-by-one, unsigned underflow, missing bounds checks—so kernel-returned sizes, ELF fields, and filename suffixes drive out-of-bounds writes or huge allocations during symbol and path generation.