From: Victor Julien Date: Fri, 31 Jan 2014 11:53:26 +0000 (+0100) Subject: Updated banned function cocci check X-Git-Tag: suricata-2.0rc1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=385c04164b7df5ab5dadcbeac4c6afd0a022fa5b;p=thirdparty%2Fsuricata.git Updated banned function cocci check Added: strndup and strchrnul Both are not supported on OS X 10.6. It's rather old, but it's the only Mac QA box I have, so for now it'll have to do. --- diff --git a/qa/coccinelle/banned-functions.cocci b/qa/coccinelle/banned-functions.cocci index 03f3438536..82d116b089 100644 --- a/qa/coccinelle/banned-functions.cocci +++ b/qa/coccinelle/banned-functions.cocci @@ -1,5 +1,5 @@ @banned@ -identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat)$"; +identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat|strndup|strchrdup)$"; position p1; @@