Re: vasnprintf: Reject a width > INT_MAX

2024-06-17 Thread Bruno Haible
I did: > vasnprintf: Reject a width > INT_MAX. > * lib/vasnprintf.c (VASNPRINTF): If a width is > INT_MAX, fail with > EOVERFLOW. This causes a test failure on Cygwin. Namely, Cygwin has vasnprintf, but with this argument list "x%030dy\n"

vasnprintf: Reject a width > INT_MAX

2024-06-14 Thread Bruno Haible
with ERANGE on MSVC.) See the attached test program. * It's consistent with passing the width as an 'int' argument: "%*d". It would be odd if an application could use the 'int' argument for some widths and had to use a dynamically created format string fo