noproxy: replace atoi with curlx_str_number

To better reject junk and detect overflows. There were already
additional precautions and protections in place, but this is cleaner.

Extended the 1614 unit tests with some more bad syntax cases.

Closes #19475
This commit is contained in:
Daniel Stenberg 2025-11-12 08:17:48 +01:00
parent 207721165e
commit 97b0abb46b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 19 additions and 3 deletions

View file

@ -2,6 +2,7 @@
<info>
<keywords>
unittest
noproxy
</keywords>
</info>