This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/8729: [3.2/3.3 regression] C preprocessor crashes on files with null characters
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: reichelt at igpm dot rwth-aachen dot de, drey at rt dot mipt dot ru, gcc-bugs at gcc dot gnu dot org,gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 27 Nov 2002 20:20:33 +0000
- Subject: Re: preprocessor/8729: [3.2/3.3 regression] C preprocessor crashes on files with null characters
- References: <20021127165404.30887.qmail@sources.redhat.com>
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.