Re: array overflow in local.c

2008-06-27 Thread Casey Marshall
On Jun 27, 2008, at 6:15 AM, Robert Schuster wrote: Hi. Andrew Haley schrieb: Furthermore since overrunning the bounds of a stack allocated array may trash other stuff on the stack I wonder whether this fix also prevents the problem that the workaround above the modified code speaks of. S

Re: array overflow in local.c

2008-06-27 Thread Robert Schuster
Hi. Andrew Haley schrieb: >> Furthermore since overrunning the bounds of a stack allocated array may >> trash other stuff on the stack I wonder whether this fix also prevents >> the problem that the workaround above the modified code speaks of. Since >> I do not run Darwin-based OS I cannot test i

Re: array overflow in local.c

2008-06-27 Thread Andrew Haley
Robert Schuster wrote: > gcc found a problem in our native/jni/javanet/local.c. > > I changed it to what I think makes sense but I am not sure whether this > is still the intended behavior. > > Furthermore since overrunning the bounds of a stack allocated array may > trash other stuff on the sta

array overflow in local.c

2008-06-27 Thread Robert Schuster
Hi, gcc found a problem in our native/jni/javanet/local.c. I changed it to what I think makes sense but I am not sure whether this is still the intended behavior. Furthermore since overrunning the bounds of a stack allocated array may trash other stuff on the stack I wonder whether this fix also