зеркало из https://github.com/microsoft/clang-1.git
Fix a serious null termination bug found by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8b9ad38dab
Коммит
c9f29c6185
|
@ -959,7 +959,7 @@ llvm::Constant *CodeGenModule::GetAddrOfConstantString(const std::string &str,
|
|||
/// character. The result has pointer to array type.
|
||||
llvm::Constant *CodeGenModule::GetAddrOfConstantCString(const std::string &str,
|
||||
const char *GlobalName){
|
||||
return GetAddrOfConstantString(str + "\0", GlobalName);
|
||||
return GetAddrOfConstantString(str + '\0', GlobalName);
|
||||
}
|
||||
|
||||
/// EmitObjCPropertyImplementations - Emit information for synthesized
|
||||
|
|
Загрузка…
Ссылка в новой задаче