AntiPattern
Buffer Size Assumption Drift
buffer-size-assumption-drift
Unchecked size assumptions let computations exceed allocated buffers or stack limits—e.g., syscalls may return lengths larger than the provided allocation, string appends ignore remaining capacity, and substring size math underflows. This corrupts memory or triggers stack exhaustion.