aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-04-15 12:56:23 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-04-15 12:56:23 +0000
commit74a602085e368fdf86ecefd78500b4ffdf418e5d (patch)
treefaa0f8924d985262e4e73694a959892164f3392b /tools
parent0fca04e6a074db93281f4bded364005c07622598 (diff)
Ban strdup() and strndup().
svn path=/trunk/; revision=25045
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