PR fortran/95091 - Buffer overflows with submodules and long symbols
authorHarald Anlauf <anlauf@gmx.de>
Sun, 7 Jun 2020 12:47:24 +0000 (14:47 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 7 Jun 2020 12:47:24 +0000 (14:47 +0200)
commitb342cfd648e6658363c7c8fef83af8f59dba1795
tree9a1a25ff8675055eead33666adabad390ffe3fe4
parentd8930b138788258aaad77b8fe821ce44d08a66d1
PR fortran/95091 - Buffer overflows with submodules and long symbols

With submodules, name mangling results in long internal symbols.  This
requires adjustment of the sizes of temporaries to avoid buffer overflows.

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

gcc/fortran/
PR fortran/95091
* class.c (get_unique_type_string, gfc_hash_value): Enlarge
buffers, and check whether the strings returned by
get_unique_type_string() fit.
gcc/fortran/class.c
gcc/testsuite/gfortran.dg/pr95091.f90 [new file with mode: 0644]