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: [Patch] PR java/22113: Fix buffer overflow in Java lexer for FP literals


Ranjit Mathew writes:
 > Hi,
 > 
 >   This is a naive but effective patch for PR java/22113 where
 > the 'literal_token' buffer of do_java_lex() in lex.c for reading
 > in an FP literal was overflowing in cases like the Jacks testcase
 > 3.10.2-round-6.
 > 
 > Tested on i686-pc-linux-gnu with Jacks included. Produces
 > no new failures and fixes the recent FAIL-ing of 3.10.2-round-6
 > on i686-pc-linux-gnu at least.
 > 
 > OK for mainline?
 > 
 > Thanks,
 > Ranjit.
 > 
 > :ADDPATCH java:
 > 
 > -- 
 > Ranjit Mathew       Email: rmathew AT gmail DOT com
 > 
 > Bangalore, INDIA.     Web: http://ranjitmathew.hostingzero.com/
 > Index: ChangeLog
 > from  Ranjit Mathew  <rmathew@hotmail.com>
 > 
 > 	PR java/22113
 > 	* lex.c (do_java_lex): Define MAX_TOKEN_LEN. Avoid overflowing
 > 	`literal_token' for large numeric input tokens.

OK, thanks.

Andrew.


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