[PATCH] PR fortran/95091 - Buffer overflows with submodules and long symbols
Harald Anlauf
anlauf@gmx.de
Sat Jun 6 21:11:39 GMT 2020
There's another case of buffer overflows when F2008 submodules are used.
Buffer sizes are further increased, and checks for overflow are put into
place.
OK for master?
I intend to backport to 10 and 9, since I believe the patch is safe.
Thanks,
Harald
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-06 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr95091.patch
Type: text/x-patch
Size: 2471 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200606/96dd8031/attachment.bin>
More information about the Gcc-patches
mailing list