This is an archive of the discontinued LLVM Phabricator instance.

[flang] Detect output field width overflow for Inf/NaN
ClosedPublic

Authored by klausler on May 30 2023, 10:57 AM.

Details

Summary

The output editing code paths for F and E/D output that handle
IEEE-754 infinities and NaNs fail to check for overflow of the
output field, which should cause the field to be filled with
asterisks instead. Catch these cases.

Diff Detail

Event Timeline

klausler created this revision.May 30 2023, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 10:57 AM
klausler requested review of this revision.May 30 2023, 10:57 AM
vdonaldson accepted this revision.May 30 2023, 11:31 AM
This revision is now accepted and ready to land.May 30 2023, 11:31 AM
This revision was automatically updated to reflect the committed changes.