On Fri, Aug 8, 2014 at 11:50 AM, Prathamesh Kulkarni
wrote:
> Put check for EOF in parse_for and parse_if,
> else it results in segmentation fault.
>
> eg:
> (if (0)
>
>
> Not sure why it segfaults.
Hmm, I think this is a bug in libcpp which seems to
crash when you do cpp_peek_token (r, 0); cp
Put check for EOF in parse_for and parse_if,
else it results in segmentation fault.
eg:
(if (0)
Not sure why it segfaults.
I got following back-trace (in gdb):
#0 _cpp_lex_direct (pfile=pfile@entry=0x66f560) at ../../src/libcpp/lex.c:2183
#1 0x0041d50c in _cpp_lex_token (pfile=pfile