From: Steve Holme Date: Mon, 23 May 2016 11:13:41 +0000 (+0100) Subject: checksrc.pl: Added variants of strcat() & strncat() to banned function list X-Git-Tag: curl-7_49_1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a2422753f4849988cd9e86e835597cd34c14c83;p=thirdparty%2Fcurl.git 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. --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 24ea966f05..aacb242b5d 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -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");