Author: kremenek Date: Fri Nov 30 16:39:46 2007 New Revision: 44469 URL: http://llvm.org/viewvc/llvm-project?rev=44469&view=rev Log: Fixed potential bug where CurWord is not zeroed out in JumpToBit.
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=44469&r1=44468&r2=44469&view=diff ============================================================================== --- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original) +++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Fri Nov 30 16:39:46 2007 @@ -122,6 +122,7 @@ // Move the cursor to the right word. NextChar = FirstChar+ByteNo; BitsInCurWord = 0; + CurWord = 0; // Skip over any bits that are already consumed. if (WordBitNo) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits