Message127838
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. |
|
Date |
User |
Action |
Args |
2011-02-04 00:26:42 | belopolsky | set | recipients:
+ belopolsky, loewis, akuchling, brett.cannon, kristjan.jonsson, ajaksu2, benjamin.peterson, skrah, meador.inge |
2011-02-04 00:26:42 | belopolsky | set | messageid: <1296779202.06.0.89880180178.issue3367@psf.upfronthosting.co.za> |
2011-02-04 00:26:41 | belopolsky | link | issue3367 messages |
2011-02-04 00:26:41 | belopolsky | create | |
|