diff options
| author | Joseph Myers <josmyers@redhat.com> | 2024-09-04 13:21:23 +0000 |
|---|---|---|
| committer | Joseph Myers <josmyers@redhat.com> | 2024-09-04 13:21:23 +0000 |
| commit | 64f62c47e9c350f353336f2df6714e1d48ec50d8 (patch) | |
| tree | 57bfdaafa1d6340bbe78956f4a2fe71d0f5479f6 /scripts/glibcpp.py | |
| parent | be77d5ae417236883c02d3d67c0716e3f669fa41 (diff) | |
| download | glibc-64f62c47e9c350f353336f2df6714e1d48ec50d8.tar.xz glibc-64f62c47e9c350f353336f2df6714e1d48ec50d8.zip | |
Do not set errno for overflowing NaN payload in strtod/nan (bug 32045)
As reported in bug 32045, it's incorrect for strtod/nan functions to
set errno based on overflowing payload (strtod should only set errno
for overflow / underflow of its actual result, and potentially if
nothing in the string can be parsed as a number at all; nan should be
a pure function that never sets it). Save and restore errno around
the internal strtoull call and add associated test coverage.
Tested for x86_64.
Diffstat (limited to 'scripts/glibcpp.py')
0 files changed, 0 insertions, 0 deletions
