1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Fixed buffer overflow reported by Argiris Kirtzidis.

llvm-svn: 47517
This commit is contained in:
Ted Kremenek 2008-02-23 01:11:40 +00:00
parent a56b43b442
commit bf1814f91f

View File

@ -324,7 +324,7 @@ char* Deserializer::ReadCStr(char* cstr, unsigned MaxLen, bool isNullTerm) {
cstr[i] = (char) ReadInt();
if (isNullTerm)
cstr[len+1] = '\0';
cstr[len] = '\0';
return cstr;
}