[llvm-commits] [llvm] r47517 - /llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp
Ted Kremenek
kremenek at apple.com
Fri Feb 22 17:11:40 PST 2008
Author: kremenek
Date: Fri Feb 22 19:11:40 2008
New Revision: 47517
URL: http://llvm.org/viewvc/llvm-project?rev=47517&view=rev
Log:
Fixed buffer overflow reported by Argiris Kirtzidis.
Modified:
llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp?rev=47517&r1=47516&r2=47517&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp Fri Feb 22 19:11:40 2008
@@ -324,7 +324,7 @@
cstr[i] = (char) ReadInt();
if (isNullTerm)
- cstr[len+1] = '\0';
+ cstr[len] = '\0';
return cstr;
}
More information about the llvm-commits
mailing list