Update coccinelle script to match syntax evolution.

remotes/origin/HEAD
Eric Leblond 14 years ago committed by Victor Julien
parent 0227a87fcb
commit c36aa041f3

@ -15,7 +15,7 @@ p->pkt = E;
)
@pktfield depends on !init@
identifier func !~= "^PacketCopyDataOffset$";
identifier func !~ "^PacketCopyDataOffset$";
Packet *p;
position p1;
@@
@ -35,7 +35,7 @@ import sys
sys.exit(1)
@pktlenfield@
identifier func !~= "^PacketCopyDataOffset$";
identifier func !~ "^PacketCopyDataOffset$";
Packet *p;
position p1;
@@

@ -1,5 +1,5 @@
@banned@
identifier func ~= "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$";
identifier func =~ "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$";
position p1;
@@

@ -1,7 +1,7 @@
@sizet@
size_t p;
identifier func ~= "^\(sprintf\|printf\|SCLog.*\)$";
identifier funcn ~= "^.*nprintf$";
identifier func =~ "^\(sprintf\|printf\|SCLog.*\)$";
identifier funcn =~ "^.*nprintf$";
position p1;
typedef uint16_t;
typedef uint32_t;

Loading…
Cancel
Save