[flang][runtime] Don't loop in runtime if blank appears in BOZ input
authorPeter Klausler <pklausler@nvidia.com>
Wed, 8 Jun 2022 21:52:01 +0000 (14:52 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 13 Jun 2022 23:26:50 +0000 (16:26 -0700)
commit850097d6dca6eec41e74f8823949f626735d00fe
treef71db326b822b4fbd6a4249bd39bcee89e1c874b
parentf472c099be07593be2a1ea9f5c61793d348a4f52
[flang][runtime] Don't loop in runtime if blank appears in BOZ input

The code for scanning BOZ input allows for blanks and tabs to appear,
but can hang if they do and the BOZ input value is not followed by
extra valid digits; the repositioning for the second sweep simply
needed to be done in units of character, not valid digits.

Differential Revision: https://reviews.llvm.org/D127431
flang/runtime/edit-input.cpp