]> gcc.gnu.org Git - gcc.git/commit
PR fortran/95826 - Buffer overflows with PDTs and long symbols
authorHarald Anlauf <anlauf@gmx.de>
Thu, 25 Jun 2020 18:32:13 +0000 (20:32 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 26 Jun 2020 19:06:21 +0000 (21:06 +0200)
commit32613b6af830f12ee5b6ef97edd782666f47cbb8
tree870bccd97036b1aeda9c85e2b1ec0c8bb4c5ae36
parent5e00a2d1aa68f92e413fec01ce912401bcfcf44f
PR fortran/95826 - Buffer overflows with PDTs and long symbols

With PDTs (parameterized derived types), name mangling results in variably
long internal symbols.  Use a dynamic buffer instead of a fixed-size one.

gcc/fortran/
PR fortran/95826
* decl.c (gfc_match_decl_type_spec): Replace a fixed size
buffer by a pointer and reallocate if necessary.

(cherry picked from commit 35a335a159216548fc77263ac5df71ff29d3f448)
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr95826.f90 [new file with mode: 0644]
This page took 0.063325 seconds and 6 git commands to generate.