AntiPattern
Miscalculated Buffer Sizes
buffer-size-miscalculation-copy-overflow
Buffer lengths are computed from the wrong quantity (or with flawed arithmetic) before copying/concatenating strings or syscall results, so writes can exceed the allocated region, triggering stack exhaustion or heap overflows.