Author belopolsky
Recipients ajaksu2, akuchling, belopolsky, benjamin.peterson, brett.cannon, kristjan.jonsson, loewis, meador.inge, skrah
Date 2011-02-04.00:26:41
SpamBayes Score 2.16118e-06
Marked as misclassified No
Message-id <1296779202.06.0.89880180178.issue3367@psf.upfronthosting.co.za>
In-reply-to
Content
I don't have a working valgrind or purify, but I was able to reproduce the problem using a poor man's solution of adding

         assert(0xcbcbcbcbcbcbcbcb != tok->line_start);

before

         if (a >= tok->line_start)
 
With that assert the debug build indeed crashes once I hit Ctrl-D.  Attached patch fixes that. 

I have also added tok->line_start in a few tok constructors for which I don't have a test case demonstrating access to uninitialized value, but it seems to be good defensive programming.
History
Date User Action Args
2011-02-04 00:26:42belopolskysetrecipients: + belopolsky, loewis, akuchling, brett.cannon, kristjan.jonsson, ajaksu2, benjamin.peterson, skrah, meador.inge
2011-02-04 00:26:42belopolskysetmessageid: <1296779202.06.0.89880180178.issue3367@psf.upfronthosting.co.za>
2011-02-04 00:26:41belopolskylinkissue3367 messages
2011-02-04 00:26:41belopolskycreate