diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-04-15 12:56:23 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-04-15 12:56:23 +0000 |
commit | 74a602085e368fdf86ecefd78500b4ffdf418e5d (patch) | |
tree | faa0f8924d985262e4e73694a959892164f3392b /tools | |
parent | 0fca04e6a074db93281f4bded364005c07622598 (diff) |
Ban strdup() and strndup().
svn path=/trunk/; revision=25045
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 7 |
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 |