[all-commits] [llvm/llvm-project] 763e03: [flang] Detect output field width overflow for Inf...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed May 31 09:09:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 763e036cc9122f5a0acc650f2899f2210029164c
      https://github.com/llvm/llvm-project/commit/763e036cc9122f5a0acc650f2899f2210029164c
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M flang/runtime/edit-output.cpp

  Log Message:
  -----------
  [flang] Detect output field width overflow for Inf/NaN

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.

Differential Revision: https://reviews.llvm.org/D151738




More information about the All-commits mailing list