]> gcc.gnu.org Git - gcc.git/commit
gfortran: Fix allocation of diagnostig string (was too small).
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 29 Jul 2016 08:04:01 +0000 (08:04 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 29 Jul 2016 08:04:01 +0000 (08:04 +0000)
commit7b11fbb8383cc842a9788115077d7d1dcb69c418
tree47e393d991c9aac28081ee86d635052b7f29cba7
parent883b6d4e1b1c826007d12b4685b4e7b0fffc5347
gfortran: Fix allocation of diagnostig string (was too small).

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 extra most of the time so
most of the time the excess write did no harm.

gcc/fortran/ChangeLog:

* trans-array.c (gfc_conv_array_ref): Fix allocation of diagnostic
message (was too small).

From-SVN: r238849
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
This page took 0.057375 seconds and 5 git commands to generate.