]> gcc.gnu.org Git - gcc.git/commit
Fortran: avoid NULL pointer dereferences
authorHarald Anlauf <anlauf@gmx.de>
Wed, 10 Nov 2021 19:30:27 +0000 (20:30 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 10 Nov 2021 19:30:27 +0000 (20:30 +0100)
commitabc2f01914d6c4703de26c402fb579a9a2d0dba4
treeedb997ffe0cf1b326b78d2f480bb137c0fcf12c0
parentb83705b477858ba683b99fa61ff9ff83bc5be265
Fortran: avoid NULL pointer dereferences

CLASS(), PARAMETER is not yet properly implemented in gfortran.  Using it
in declarations could lead to subsequent NULL pointer dereferences during
checking or simplification of expressions involving those CLASS variables.

gcc/fortran/ChangeLog:

PR fortran/103137
PR fortran/103138
* check.c (gfc_check_shape): Avoid NULL pointer dereference on
missing ref.
* simplify.c (gfc_simplify_cshift): Avoid NULL pointer dereference
when shape not set.
(gfc_simplify_transpose): Likewise.
gcc/fortran/check.c
gcc/fortran/simplify.c
This page took 0.065971 seconds and 6 git commands to generate.