Re: [PATCH v4 1/2] man/man3/strto[u]l.3: BUGS: Signed numbers and white space are not rejected

Alejandro Colomar
2025-03-23T18:35:14Z

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

On Sun, Mar 23, 2025 at 06:11:39PM +0100, Bruno Haible wrote:
> Alejandro,
>
> > I ended up doing what you said:
> >
> > <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=ebe5a89dcd431d15c54ebc22eaa35721496fee4b>
>
> +if ((errno == ERANGE && n == LONG_MIN) || n > max)
>
> Here: LONG_MIN -> LONG_MAX
>
> Signed-off-by: Bruno Haible <bruno@clisp.org>

Thanks! Ameded and pushed.

Cheers,
Alex

--
<https://www.alejandro-colomar.es/>