]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/95104 - Segfault on a legal WAIT statement
authorHarald Anlauf <anlauf@gmx.de>
Thu, 28 May 2020 19:53:17 +0000 (21:53 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 28 May 2020 20:03:31 +0000 (22:03 +0200)
commite1396ee72e68cc8fba99ce986f2910cd39e335b8
tree8a82a3174b1df7c4138a53e88becfc9e8da2632e
parentc082cb8a2523d8c5afe5710e265bc72dd71aa60b
PR fortran/95104 - Segfault on a legal WAIT statement

The initial commit for this PR uncovered a latent issue with unit locking
in the Fortran run-time library.  Add check for valid unit.

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

libgfortran/
PR libfortran/95104
* io/unit.c (unlock_unit): Guard by check for NULL pointer.

(cherry picked from commit 6ce3d791dfcba469e709935aba5743640f7d4959)
libgfortran/io/unit.c