GenerateArrayAllocHelper's lack of size capping allowed improperly sized inline segments. The commit patches explicitly modify these functions to address memory layout consistency and size enforcement, directly correlating with the described UAF/OOB write vulnerability.