зеркало из https://github.com/AvaloniaUI/angle.git
Fixed crashes caused by a string buffer overflow
TRAC #11888 Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@158 736b8ea6-26fd-11df-bfd4-992fa37f6226
This commit is contained in:
Родитель
005c73922f
Коммит
a0c34d27e1
|
@ -47,7 +47,7 @@ void TType::buildMangledName(TString& mangledName)
|
|||
|
||||
mangledName += static_cast<char>('0' + getNominalSize());
|
||||
if (isArray()) {
|
||||
char buf[10];
|
||||
char buf[20];
|
||||
sprintf(buf, "%d", arraySize);
|
||||
mangledName += '[';
|
||||
mangledName += buf;
|
||||
|
|
Загрузка…
Ссылка в новой задаче