arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM. Is this only actually a problem with the UB because we don't bother trying to set m0 to the allocated size? Repository: rL LLVM https://reviews.llvm.org/D53160