[Bug 278556] strerror-related race condition and standards violation in printf and friends

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Apr 2024 17:05:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278556

--- Comment #2 from Warner Losh <imp@FreeBSD.org> ---
btw, my change is minimal. it could easily just #define BUF to be NL_TEXTMAX
and work, though it might have more cache misses given the 2k span of the
buffer... we could get rid of the MAX and always do NL_TEXTMAX and use either
sizeof or define BUF to be something like (sizeof(uintmax_t) / 3 + 2) which
will always be enough and 2k can handle integers up to 6k bits, so we'd future
proof the code.

-- 
You are receiving this mail because:
You are the assignee for the bug.