[Bug libfortran/95104] [9/10 Regression] Segfault on a legal WAIT statement

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 27 19:05:54 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95104

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:50cd4503e59f29e379d0515c48e67d0658ee4562

commit r10-8193-g50cd4503e59f29e379d0515c48e67d0658ee4562
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue May 26 23:29:52 2020 +0200

    PR fortran/95104 - Segfault on a legal WAIT statement

    Referencing a unit in a WAIT statement that has not been opened before
    resulted in a NULL pointer dereference.  Check for this condition.

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

    libgfortran/
            PR libfortran/95104
            * io/transfer.c (st_wait_async): Do not dereference NULL pointer.

    gcc/testsuite/
            PR libfortran/95104
            * gfortran.dg/pr95104.f90: New test.

    Co-Authored-By: Steven G. Kargl  <kargl@gcc.gnu.org>
    (cherry picked from commit 56f03cd12be26828788a27f6f3c250041a958e45)


More information about the Gcc-bugs mailing list