This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/61187] valgrind errors if stdin is closed


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]