]> granicus.if.org Git - clang/commit
In StringLiteral::setString make sure that we copy the number of
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Sep 2012 21:17:41 +0000 (21:17 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Sep 2012 21:17:41 +0000 (21:17 +0000)
commit66dfef17b8da7c89e20f32d4f0f4a04691b79768
tree4a34e63dbc0f66208548a4b42afe466afbdb43a9
parent7f1863326488813e7648845f3cec5225770b1a0b
In StringLiteral::setString make sure that we copy the number of
bytes of the buffer and not the size of the string, otherwise we
may overwrite the buffer if there is a mismatch between the size
of the string and the CharByteWidth, and assertions are disabled.

The bug where this could occur was fixed in r163931.
Related to rdar://12069503

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163939 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp