mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
checksrc: disallow atoi and atol globally
No longer used in core and test code. Also: allowlist in docs/examples. Closes #19508
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
|
||||
allowfunc atoi
|
||||
allowfunc atol
|
||||
allowfunc fclose
|
||||
allowfunc fdopen
|
||||
allowfunc fopen
|
||||
|
||||
@@ -72,6 +72,8 @@ my %banfunc = (
|
||||
"strtok_r" => 1,
|
||||
"strtol" => 1,
|
||||
"strtoul" => 1,
|
||||
"atoi" => 1,
|
||||
"atol" => 1,
|
||||
"_mbscat" => 1,
|
||||
"_mbsncat" => 1,
|
||||
"_tcscat" => 1,
|
||||
|
||||
@@ -3,4 +3,3 @@
|
||||
# SPDX-License-Identifier: curl
|
||||
|
||||
enable STDERR
|
||||
banfunc atoi
|
||||
|
||||
Reference in New Issue
Block a user