This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix actions at end of output record
ClosedPublic

Authored by klausler on Oct 1 2020, 11:01 AM.

Details

Summary

It turns out that unformatted fixed-size output records
do need to be padded out if short, in order to avoid a
spurious EOF crash reading a short record at the end of the file.
While here in AdvanceRecord(), move the unformatted
variable-length record header/footer writing code to here
from EndIoStatement().

Diff Detail

Event Timeline

klausler created this revision.Oct 1 2020, 11:01 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Oct 1 2020, 11:01 AM
schweitz accepted this revision.Oct 1 2020, 2:04 PM
This revision is now accepted and ready to land.Oct 1 2020, 2:04 PM
This revision was automatically updated to reflect the committed changes.