← Commit list

6384e2aca0

Viktor Szakats
Viktor Szakats
2025-11-13
SUCCESS Duration: 139s

Subject

checksrc: disallow `atoi` and `atol` globally

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/examples/.checksrc+2 -0
@@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: curl
+allowfunc atoi
+allowfunc atol
allowfunc fclose
allowfunc fdopen
allowfunc fopen
scripts/checksrc.pl+2 -0
@@ -72,6 +72,8 @@ my %banfunc = (
"strtok_r" => 1,
"strtol" => 1,
"strtoul" => 1,
+ "atoi" => 1,
+ "atol" => 1,
"_mbscat" => 1,
"_mbsncat" => 1,
"_tcscat" => 1,
src/.checksrc+0 -1
@@ -3,4 +3,3 @@
# SPDX-License-Identifier: curl
enable STDERR
-banfunc atoi