AntiPattern
Unsafe Buffer Sizing
unsafe-buffer-sizing
Buffer sizing relies on incorrect length estimates (or missing bounds checks) before writes like strcpy/strcat and substring copies, so oversized or attacker-influenced inputs can overflow allocated regions, exhaust stacks, or underflow size computations, breaking memory safety.