mirror of
https://github.com/curl/curl.git
synced 2026-07-02 21:17:16 +03: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:
parent
bb1391f943
commit
6384e2aca0
3 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue