This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make binary->decimal conversion buffer sizes accurate
ClosedPublic

Authored by klausler on Oct 1 2020, 11:28 AM.

Details

Summary

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.

Diff Detail