[flang-commits] [PATCH] D124301: [flang][runtime] Signal record read overrun when PAD='NO'

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Apr 22 16:58:41 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGaac6e25f7d3c: [flang][runtime] Signal record read overrun when PAD='NO' (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124301/new/

https://reviews.llvm.org/D124301

Files:
  flang/runtime/io-stmt.cpp


Index: flang/runtime/io-stmt.cpp
===================================================================
--- flang/runtime/io-stmt.cpp
+++ flang/runtime/io-stmt.cpp
@@ -674,7 +674,7 @@
         IoErrorHandler &handler{GetIoErrorHandler()};
         if (mutableModes().nonAdvancing) {
           handler.SignalEor();
-        } else if (connection.openRecl && !connection.modes.pad) {
+        } else if (!connection.modes.pad) {
           handler.SignalError(IostatRecordReadOverrun);
         }
         return connection.modes.pad; // PAD='YES'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124301.424669.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220422/1ed585a9/attachment.bin>


More information about the flang-commits mailing list