[patch, libgfortran] PR67367 Program crashes on READ
Jerry DeLisle
jvdelisle@charter.net
Sat Aug 29 15:56:00 GMT 2015
On 08/28/2015 10:18 PM, Jerry DeLisle wrote:
> I found that in read_buf where raw_read is called, no checks for errors were
> being made, raw_read returns the number of bytes read or an error code. In the
> test case, an error occurs and we proceeded to use the resulting error code as
> if it were the number of bytes read.
>
> The attached patch fixes this. Regression tested on x86_64. New test case
> provided.
>
> OK for trunk?
>
Committed. I should mention, the test case may fail on some platforms since the
system call may be dependent. I will xfail those as we learn which. Test case
committed revision 227321.
Regards,
Jerry
More information about the Fortran
mailing list