]> git.ipfire.org Git - thirdparty/curl.git/commit
noproxy: replace atoi with curlx_str_number
authorDaniel Stenberg <daniel@haxx.se>
Wed, 12 Nov 2025 07:17:48 +0000 (08:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Nov 2025 09:30:59 +0000 (10:30 +0100)
commit97b0abb46bc03e6f59a90666df6f0dc138fa2a04
tree38bffe13c8bbc7779698577bc96223c460aa50df
parent207721165e637de16413189f414a593d580db965
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
lib/noproxy.c
tests/data/test1614
tests/unit/unit1614.c