[all-commits] [llvm/llvm-project] 07cb4c: [flang] Make binary->decimal conversion buffer siz...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Oct 5 13:12:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 07cb4c013c43721565530f3be077c947804da8a6
      https://github.com/llvm/llvm-project/commit/07cb4c013c43721565530f3be077c947804da8a6
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M flang/include/flang/Common/real.h

  Log Message:
  -----------
  [flang] Make binary->decimal conversion buffer sizes accurate

The binary values that produce the most significant decimal
digits in an exact conversion are those with the least normal
biased exponent (1) and all fractional bits set, not the
least-valued subnormals.  So the binary->decimal conversion
buffer sizes were a little short, and could cause a overrun crash.

Differential revision: https://reviews.llvm.org/D88688




More information about the All-commits mailing list