]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/95090 - ICE: identifier overflow
authorHarald Anlauf <anlauf@gmx.de>
Fri, 29 May 2020 19:19:31 +0000 (21:19 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 29 May 2020 19:19:31 +0000 (21:19 +0200)
commit7deca8c0b3765787627b11387b56b97b01a8bf33
treeae7870ac3c001d275f373ebe1f44e79de3712670
parent316fe6b40165c26b30375f8ad85384379133f89b
PR fortran/95090 - ICE: identifier overflow

The initial fix for this PR uncovered several latent issues with further
too small string buffers which showed up only when testing on i686.
Provide sufficiently large temporaries.

2020-05-29  Harald Anlauf  <anlauf@gmx.de>

gcc/fortran/
PR fortran/95090
* class.c (get_unique_type_string): Enlarge temporary for
name-mangling.  Use strncpy to prevent buffer overrun.
(get_unique_hashed_string): Enlarge temporary.
(gfc_hash_value): Enlarge temporary for name-mangling.
gcc/fortran/class.c