aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-11-27 20:06:20 +0000
committerGuy Harris <guy@alum.mit.edu>2007-11-27 20:06:20 +0000
commitc6420ae10ba530fc0f15e4f7cd0c99c20e21fb73 (patch)
treeb8234cbe0e2f3039afe7f8fbef8d51b0fd63275f /tools
parente6793769967a0d292d39da1f8bf099cbbb4a2a4d (diff)
Ban strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp()
while we're at it. More to come.... svn path=/trunk/; revision=23626
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index ebc0828651..09b01c16a3 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -51,6 +51,14 @@ my @prohibitedAPIs=
# use ep_ or se_ functions instead of these:
'malloc',
'free',
+ # Locale-unsafe APIs
+ # These may have unexpected behaviors in some locales (e.g.,
+ # "I" isn't always the upper-case form of "i", and "i" isn't
+ # always the lower-case form of "I").
+ 'strcasecmp',
+ 'strncasecmp',
+ 'g_strcasecmp',
+ 'g_strncasecmp',
);
# APIs that SHOULD NOT be used in Wireshark (any more)