From: Viktor Szakats Date: Wed, 12 Nov 2025 22:37:06 +0000 (+0100) Subject: checksrc: disallow `atoi` and `atol` globally X-Git-Tag: rc-8_18_0-1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6384e2aca0045e72d7d81c9fbdca1d284ed704b6;p=thirdparty%2Fcurl.git checksrc: disallow `atoi` and `atol` globally No longer used in core and test code. Also: allowlist in docs/examples. Closes #19508 --- diff --git a/docs/examples/.checksrc b/docs/examples/.checksrc index e35dccc726..c47627467f 100644 --- a/docs/examples/.checksrc +++ b/docs/examples/.checksrc @@ -2,6 +2,8 @@ # # SPDX-License-Identifier: curl +allowfunc atoi +allowfunc atol allowfunc fclose allowfunc fdopen allowfunc fopen diff --git a/scripts/checksrc.pl b/scripts/checksrc.pl index 5dcad3e315..caf60e1c4d 100755 --- a/scripts/checksrc.pl +++ b/scripts/checksrc.pl @@ -72,6 +72,8 @@ my %banfunc = ( "strtok_r" => 1, "strtol" => 1, "strtoul" => 1, + "atoi" => 1, + "atol" => 1, "_mbscat" => 1, "_mbsncat" => 1, "_tcscat" => 1, diff --git a/src/.checksrc b/src/.checksrc index 37b81cfe2f..bc97c06028 100644 --- a/src/.checksrc +++ b/src/.checksrc @@ -3,4 +3,3 @@ # SPDX-License-Identifier: curl enable STDERR -banfunc atoi