mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:57:22 +03:00
checksrc.pl: Added variants of strcat() & strncat() to banned function list
Added support for checking the tchar, unicode and mbcs variants of strcat() and strncat() in the banned function list.
This commit is contained in:
parent
17b1528dc2
commit
0a2422753f
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ sub scanfile {
|
|||
}
|
||||
|
||||
# scan for use of banned functions
|
||||
if($l =~ /^(.*\W)(sprintf|vsprintf|strcat|strncat|gets)\s*\(/) {
|
||||
if($l =~ /^(.*\W)(sprintf|vsprintf|strcat|strncat|_mbscat|_mbsncat|_tcscat|_tcsncat|wcscat|wcsncat|gets)\s*\(/) {
|
||||
checkwarn("BANNEDFUNC",
|
||||
$line, length($1), $file, $ol,
|
||||
"use of $2 is banned");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue