aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-15 12:56:23 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-15 12:56:23 +0000
commit5a2264fb82966611903ec839f43570b474e3db46 (patch)
treefaa0f8924d985262e4e73694a959892164f3392b /tools
parenta4a578b30c4924f73e657eaebfb5048639af84e5 (diff)
Ban strdup() and strndup().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25045 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index e76d105e7a..c425aa1c7b 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -50,7 +50,12 @@ my @prohibitedAPIs=
'ntohs',
'htonl',
'htons',
- # use ep_ or se_ functions instead of these:
+ 'strdup',
+ 'strndup',
+ # use ep_*, se_*, or g_* functions instead of these:
+ # (One thing to be aware of is that space allocated with malloc()
+ # may not be freeable--at least on Windows--with g_free() and
+ # vice-versa.)
'malloc',
'free',
# Locale-unsafe APIs