PR fortran/95088 - Buffer overflows with PDTs, submodules and long symbols
authorHarald Anlauf <anlauf@gmx.de>
Sun, 14 Jun 2020 14:12:47 +0000 (16:12 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 14 Jun 2020 14:12:47 +0000 (16:12 +0200)
commit3ee9d82484bdc0ae5b1b21f4a3d8ff46d40e36fd
treee2f261c3bf5b56b7bb5006b6d86a83720f37bdf6
parent4644e8f15f835a9934a8d289ee08ba4cb46cbfac
PR fortran/95088 - Buffer overflows with PDTs, submodules and long symbols

With PDTs (parameterized derived types) and submodules, name mangling
results in variably long internal symbols.  Instead of using a fixed-size
intermediate buffer, which is actually not really needed, just use a
pointer to strings.

2020-06-14  Harald Anlauf  <anlauf@gmx.de>

gcc/fortran/
PR fortran/95088
* class.c (get_unique_type_string): Replace use of fixed size
buffer by internally passing a pointer to strings.
gcc/fortran/class.c
gcc/testsuite/gfortran.dg/pr95088.f90 [new file with mode: 0644]