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 #1 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Fri May 16 20:37:13 2014
New Revision: 210527

URL: http://gcc.gnu.org/viewcvs?rev=210527&root=gcc&view=rev
Log:
PR 61187 Fix use of uninitialized memory.

2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>

    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:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/unix.c


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