This is the mail archive of the gcc-patches@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] |
Bugzilla 13238, tree-ssa gfortran (I filed the bug there, but I was told to send the patch also here) read(X, *) on a unit opened with form='unformatted' will trigger a segfault. Expected behaviour is an error message at compile or at runtime. A write(X, *) succeeds. Expected behaviour is also an error message at compile or at runtime. Test case at http://gcc.gnu.org/bugzilla/attachment.cgi?id=5239&action=view It looks like libgfortran/io/transfer.c has an incomplete checking in data_transfer_init(). The patch should fix it, but please bear in mind that I'm not familiar with gcc code. -- Melvin Hadasht
Attachment:
transfer.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |