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/67527] io.h sanitizer complains on 1 << 31


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

--- Comment #2 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Sat Sep 12 12:05:44 2015
New Revision: 227705

URL: https://gcc.gnu.org/viewcvs?rev=227705&root=gcc&view=rev
Log:
        PR libfortran/67527
        PR libfortran/67535
        PR libfortran/67536
        * io/io.h: Use unsigned values for 31-bit left shifts.
        * io/unix.c (buf_read): Do not call memcpy() with NULL pointer arg.
        * io/write.c (nml_write_obj): Likewise.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/io.h
    trunk/libgfortran/io/unix.c
    trunk/libgfortran/io/write.c


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