This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/61187] valgrind errors if stdin is closed
- From: "jb at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 May 2014 20:43:27 +0000
- Subject: [Bug libfortran/61187] valgrind errors if stdin is closed
- Auto-submitted: auto-generated
- References: <bug-61187-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61187
--- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Fri May 16 20:42:56 2014
New Revision: 210529
URL: http://gcc.gnu.org/viewcvs?rev=210529&root=gcc&view=rev
Log:
PR 61187 Fix use of uninitialized data.
2014-05-16 Janne Blomqvist <jb@gcc.gnu.org>
Backport from trunk:
PR libfortran/61187
* io/unix.c (raw_close): Check if s->fd is -1.
(fd_to_stream): Check return value of fstat(), handle error.
Modified:
branches/gcc-4_7-branch/libgfortran/ChangeLog
branches/gcc-4_7-branch/libgfortran/io/unix.c