]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Updated banned function cocci check
authorVictor Julien <victor@inliniac.net>
Fri, 31 Jan 2014 11:53:26 +0000 (12:53 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 31 Jan 2014 12:34:22 +0000 (13:34 +0100)
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.

qa/coccinelle/banned-functions.cocci

index 03f343853690ee06229022118dc60f78be52e28a..82d116b08945e35afa0cd9f81644ca1f0d8a1be8 100644 (file)
@@ -1,5 +1,5 @@
 @banned@
-identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat)$";
+identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat|strndup|strchrdup)$";
 position p1;
 @@