r187647 - Assume UniqueID is zero for invalid PPRegion to fix uninitialized reads reported by MSan
Alexey Samsonov
samsonov at google.com
Fri Aug 2 02:06:39 PDT 2013
Author: samsonov
Date: Fri Aug 2 04:06:39 2013
New Revision: 187647
URL: http://llvm.org/viewvc/llvm-project?rev=187647&view=rev
Log:
Assume UniqueID is zero for invalid PPRegion to fix uninitialized reads reported by MSan
Modified:
cfe/trunk/tools/libclang/Indexing.cpp
Modified: cfe/trunk/tools/libclang/Indexing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Indexing.cpp?rev=187647&r1=187646&r2=187647&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Indexing.cpp (original)
+++ cfe/trunk/tools/libclang/Indexing.cpp Fri Aug 2 04:06:39 2013
@@ -92,7 +92,7 @@ class PPRegion {
time_t ModTime;
unsigned Offset;
public:
- PPRegion() : ModTime(), Offset() {}
+ PPRegion() : UniqueID(0, 0), ModTime(), Offset() {}
PPRegion(llvm::sys::fs::UniqueID UniqueID, unsigned offset, time_t modTime)
: UniqueID(UniqueID), ModTime(modTime), Offset(offset) {}
More information about the cfe-commits
mailing list