efriedma added a comment. The C standard is very clear: "If copying takes place between objects that overlap, the behavior is undefined." There is no exception for format strings which start with %s. Repository: rL LLVM https://reviews.llvm.org/D46648