AntiPattern
Input-Driven Memory Hazards
untrusted-length-math-memory-unsafe
Untrusted inputs drive length/size decisions, and the code then uses unsafe math or string/buffer operations (e.g., unchecked alloc sizes, sprintf/strcpy/strcat, conditional initialization), causing overflows, massive allocations, or use of uninitialized data that can crash or be exploited.