re PR libfortran/81937 (stack-buffer-overflow on memcpy in libgfortran/io/unix.c...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 16 Dec 2017 19:50:42 +0000 (19:50 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 16 Dec 2017 19:50:42 +0000 (19:50 +0000)
commit1eaa31d84014c78a16409ef3c08e164dee78b56f
treeb052be0f836386dc80e2d8230dcd4d31426e03de
parentc16c06daa1e537fb2f0cbeb038a40e0867c66b3a
re PR libfortran/81937 (stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4))

2017-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/81937
        * io/list_read.c (next_char_internal): Don't attempt to read
        from the internal unit stream if no bytes are left. Decrement
        bytes_left in the right place.

From-SVN: r255750
libgfortran/ChangeLog
libgfortran/io/list_read.c