This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.2 PATCH] Fix PR preprocessor/9465
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>,gcc-patches at gcc dot gnu dot org
- Date: Sun, 2 Feb 2003 00:58:53 +0000
- Subject: Re: [3.2 PATCH] Fix PR preprocessor/9465
- References: <20030201225136.J17910@sunsite.ms.mff.cuni.cz>
Jakub Jelinek wrote:-
> Hi!
>
> fixup_newlines segfaults when '\0' occurs before first '\r' in the file
> (strchr returns NULL and it later on dereferences it).
> Gaby, is this ok for 3.2 branch (tradcpp.c was removed for 3.3+, so it is
> 3.2 branch patch only)?
>
> 2003-02-01 Jakub Jelinek <jakub@redhat.com>
>
> PR preprocessor/9465
> * tradcpp.c (fixup_newlines): Use memchr instead of strchr.
Cool, thanks Jakub. There are 2 PRs I think.
Neil.