Re: [PATCH v4 1/2] man/man3/strto[u]l.3: BUGS: Signed numbers and white space are not rejected
From: Bruno Haible <hidden>
Date: 2025-03-23 17:14:53
From: Bruno Haible <hidden>
Date: 2025-03-23 17:14:53
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 <redacted>