[Patch] PR java/29805, Write past end of array in java/typeck.c

Andrew Haley aph@redhat.com
Sun Nov 12 16:48:00 GMT 2006


David Daney writes:
 > Under some circumstances we are writing past the end of an array in 
 > java/typeck.c.  On some targets (mipsel-linux-gnu) this causes the 
 > compiler to ICE when compiling the newarray_overflow.java test from the 
 > libjava testsuite.
 > 
 > Bootstrapped and regression tested on i686-pc-linux-gnu (trunk) and 
 > mipsel-unknown-linux-gnu (4.2 branch) with no failures.
 > 
 > This gets me to zero FAILs for the libjava testsuite on 
 > mipsel-linux-gnu.  Yeah!
 > 
 > Since this is a regression from 3.4, OK for both 4.2 and the trunk?
 > 
 > 2006-11-11  David Daney  <ddaney@avtrex.com>
 > 
 >          PR java/29805
 >          * typeck.c (build_java_array_type): Increase buffer sizes.

Ouch.  Yes.

Andrew.



More information about the Gcc-patches mailing list