Fixed potential bug where CurWord is not zeroed out in JumpToBit.
authorTed Kremenek <kremenek@apple.com>
Fri, 30 Nov 2007 22:39:46 +0000 (22:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 30 Nov 2007 22:39:46 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44469 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamReader.h

index 18b1979cb5e9a46e642086b32d41d52f6c3f34d6..d06b46604baf4b7eb04a9805aadfa097a99335fe 100644 (file)
@@ -122,6 +122,7 @@ public:
     // Move the cursor to the right word.
     NextChar = FirstChar+ByteNo;
     BitsInCurWord = 0;
+    CurWord = 0;
     
     // Skip over any bits that are already consumed.
     if (WordBitNo) {