AntiPattern
Unchecked Size Arithmetic
unchecked-size-arithmetic
Buffer-size and allocation calculations are assumed correct (often relying on exact strlen/suffix math or fast-path initialization), so syscalls and parsers can overrun buffers or over-allocate memory when inputs or return values exceed computed bounds.