Fix strtod NaN handling / fix SIGSEGV in testlib/showerror (#901)

This commit is contained in:
Gavin Hayes 2023-09-27 03:16:36 -04:00 committed by GitHub
parent 3ffc17c50e
commit cc8c56e814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions

View file

@ -237,8 +237,8 @@ dig_done:
word1(&rv) = bits[0];
}
else {
word0(&rv) = NAN_WORD0;
word1(&rv) = NAN_WORD1;
word0(&rv) = 0x7ff80000;
word1(&rv) = 0x0;
}
goto ret;
}