preprocessor/8729: [3.2/3.3 regression] C preprocessor crashes on files with null characters

Neil Booth neil@daikokuya.co.uk
Thu Nov 28 09:54:00 GMT 2002


reichelt@igpm.rwth-aachen.de wrote:-

> Old Synopsis: C preprocessor crashes on binary ELF files.
> New Synopsis: [3.2/3.3 regression] C preprocessor crashes on files with null characters
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: reichelt
> State-Changed-When: Wed Nov 27 08:54:01 2002
> State-Changed-Why:
>     Confirmed.
>     
>     The preprocessor (in traditional mode) chokes on files
>     .containing null charecters. Just try the 3-byte attachment.
>     
>     Only the 3.2-branch is affected. Mainline and 3.0.4 are OK.

Mainline was rewritten to be at least moderately sane so I can
quite believe it is fine.

3.0.4 passing is just a fluke I guess, as it's the same as 3.2.

I'm not sure I can find the willpower to fix this, as there are so
many buffer overflows in tradcpp.c that if I fix one you'd easily
trigger another, and the code is really hard to understand and modify.

Neil.



More information about the Gcc-bugs mailing list