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

@ -98,9 +98,9 @@ static void testlib_showerror_(int line, //
}
if (!isempty(fmt)) {
if (_weaken(kvprintf)) {
tinyprint(2, "\t");
tinyprint(2, "\t", NULL);
_weaken(kvprintf)(fmt, va);
tinyprint(2, "\n");
tinyprint(2, "\n", NULL);
} else {
tinyprint(2, "\t[missing kvprintf]\n");
}