Re: [PATCH] gfortran: Fix allocation of diagnostig string (was too small).

2016-07-29 Thread Andreas Krebbel
On 07/26/2016 05:42 PM, Dominik Vogt wrote: > gcc/fortran/ChangeLog > > * trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic > message (was too small). Applied. Thanks! -Andreas-

Re: [PATCH] gfortran: Fix allocation of diagnostig string (was too small).

2016-07-26 Thread Janne Blomqvist
On Tue, Jul 26, 2016 at 6:42 PM, Dominik Vogt wrote: > The attached patch fixes an out of bound write to memory allocated > with alloca() on the stack. This rarely ever happened because on > one hand -fbounds-check needs to be enabled, and on the other hand > alloca() used to allocate a few bytes

[PATCH] gfortran: Fix allocation of diagnostig string (was too small).

2016-07-26 Thread Dominik Vogt
Tue, 26 Jul 2016 13:17:29 +0100 Subject: [PATCH] gfortran: Fix allocation of diagnostig string (was too small). --- gcc/fortran/trans-array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index e95c8dd..7572755 100644 --