Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2024 17:05:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 278556] strerror-related race condition and standards violation in printf and friends
Message-ID:  <bug-278556-99-ja6kx09sCD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278556-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278556-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278556

--- 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 eith=
er
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 fut=
ure
proof the code.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278556-99-ja6kx09sCD>