This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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] natString.cc: Some fixes for bounds checkingarithmetic.


> > Alternatively, I could fix those without test cases.  Would that be
> > acceptable?
> 
> If you need a 4 GB string to break it, then I'd be inclined to ignore 
> it as an extremely pessimistic case!

For stuff in .cc files, it's possible to corrupt the runtime - I'd feel
uncomfortable not fixing it because we might end up on bugtraq.

For stuff in .java, it mostly just changes the exception that gets
thrown, so ignoring it is probably OK.  (Although we might also leave
objects in an inconsistent state).

There might be issues outside of string handling too - a 4GB string
would be pretty odd, but a 4GB array of floats is not unheard of.

Ralph.

>  However, it doesn't hurt to be 
> correct and if the changes don't add significant overhead or complexity 
> then they should be fine. Its up to you.
> 
> Regards
> 
> Bryce.
> 
> 


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