This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3.2 PATCH] Fix PR preprocessor/9465


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]