mirror of https://github.com/OISF/suricata
cocci: add test to check for uint use
uint is non-standard and not supported by MinGW. So ban it's use. spatch file by Eric Leblond.pull/2850/head
parent
afed6fe4a2
commit
5ea58fe3c4
@ -0,0 +1,13 @@
|
||||
@uint@
|
||||
uint i;
|
||||
position p1;
|
||||
@@
|
||||
|
||||
i@p1
|
||||
|
||||
@script:python@
|
||||
p1 << uint.p1;
|
||||
@@
|
||||
print "banned type uint used at at %s:%s, please use a explicit length." % (p1[0].file, p1[0].line)
|
||||
import sys
|
||||
sys.exit(1)
|
Loading…
Reference in New Issue