cosmopolitan/test
Gabriel Ravier a089c07ddc
Fix printf funcs on memory pressure with floats (#1275)
Cosmopolitan's printf-family functions will currently crash if one tries
formatting a floating point number with a larger precision (large enough
that gdtoa attempts to allocate memory to format the number) while under
memory pressure (i.e. when malloc fails) because gdtoa fails to check if
malloc fails.

The added tests (which would previously crash under cosmopolitan without
this patch) show how to reproduce the issue.

This patch fixes this, and adds the aforementioned tests.
2024-09-01 14:42:14 -07:00
..
ctl Fix shared_ptr::owner_before (#1274) 2024-09-01 17:34:39 -04:00
dsp Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
libc Fix printf funcs on memory pressure with floats (#1275) 2024-09-01 14:42:14 -07:00
libcxx Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
math Share file offset across processes 2024-08-03 01:39:11 -07:00
net Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
posix Share file offset across execve() on Windows 2024-08-03 17:48:00 -07:00
tool Move LoadZipArgs() to cosmo.h 2024-08-17 12:06:27 -07:00
BUILD.mk Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00