diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-09-04 13:21:23 +0000 |
---|---|---|
committer | Arjun Shankar <arjun@redhat.com> | 2024-09-27 17:25:43 +0200 |
commit | 6624318c89185fe8b9d1f61e7a6841a843b8f9f3 (patch) | |
tree | b7c36e0da59c534b94dac94b3caccc01153f765d /sysdeps/powerpc/powerpc64/le/Makefile | |
parent | 63bcc017446d14e64aed8511845400fc661f2828 (diff) | |
download | glibc-6624318c89185fe8b9d1f61e7a6841a843b8f9f3.tar.gz glibc-6624318c89185fe8b9d1f61e7a6841a843b8f9f3.tar.xz glibc-6624318c89185fe8b9d1f61e7a6841a843b8f9f3.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. (cherry picked from commit 64f62c47e9c350f353336f2df6714e1d48ec50d8)
Diffstat (limited to 'sysdeps/powerpc/powerpc64/le/Makefile')
0 files changed, 0 insertions, 0 deletions