AntiPattern

Unsafe Length Math

unsafe-length-math

Buffer and allocation sizing breaks because code relies on fragile length/suffix arithmetic or incomplete return-value checks, letting writes or huge allocations occur via sprintf/strcpy/strcat, unchecked getcwd lengths, or untrusted ELF size fields.