PR fortran/95828 - Buffer overflows with SELECT RANK
authorHarald Anlauf <anlauf@gmx.de>
Thu, 25 Jun 2020 18:34:48 +0000 (20:34 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 25 Jun 2020 18:34:48 +0000 (20:34 +0200)
commit77d455ee81ec3a23f8b20259a31ab963716f8e82
treef037fd0dd26fa855ca2af282c2ea47a534cf3a06
parent35a335a159216548fc77263ac5df71ff29d3f448
PR fortran/95828 - Buffer overflows with SELECT RANK

With SELECT RANK, name mangling results in long internal symbols that
overflows internal buffers.  Fix that.

gcc/fortran/
PR fortran/95828
* match.c (select_rank_set_tmp): Enlarge internal buffer used in
generating a mangled name.
* resolve.c (resolve_select_rank): Likewise.
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr95828.f90 [new file with mode: 0644]