[RFC v2] Add [v]aprintf(3)

Alejandro Colomar alx@kernel.org
Wed Mar 18 13:51:32 GMT 2026


Hi Florian,

On 2026-03-18T08:18:30+0100, Florian Weimer wrote:
> There's another issue specific to aprintf: I don't think we want it to
> fail with EOVERFLOW if the length of the string is longer than INT_MAX.
> Fixing that will be quite difficult because the INT_MAX limit is
> currently built into the generic vfprintf code.

I thought about it, and we could initially fail with EOVERFLOW, and then
we could transition to removing it in the future, when we figure out how
to do it.

But I agree, ideally, we shouldn't EOVERFLOW.


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260318/c4644d3f/attachment.sig>


More information about the Libc-alpha mailing list