aboutsummaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-05-23 12:13:41 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-05-23 12:13:41 +0100
commit0a2422753f4849988cd9e86e835597cd34c14c83 (patch)
tree055b9bb1085a8b4f2339381e092b5100b7c94e9f /lib/checksrc.pl
parent17b1528dc2b5872217bf1499ec87b230e197ab93 (diff)
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.
Diffstat (limited to 'lib/checksrc.pl')
-rwxr-xr-xlib/checksrc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 24ea966f0..aacb242b5 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");