Hi,

The attached patch, sets the correct size to an array allocation.
Index: PPLexerChange.cpp
===================================================================
--- PPLexerChange.cpp   (revision 48737)
+++ PPLexerChange.cpp   (working copy)
@@ -86,7 +86,7 @@
   // left, we can just grow it.  This means we only have to do the new 1/16th 
as
   // often.
   
-  Token *LookaheadTokens = new Token[N];
+  Token *LookaheadTokens = new Token[N+1];
 
   // Read N+1 tokens into LookaheadTokens.  After this loop, Tok is the token
   // to return.
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to