mirror of https://github.com/OISF/suricata
qa/coccinelle: fix false positive in setter getter
Coccinelle test was doing a false positive on the function AppLayerParserStateSetFlag and AppLayerParserStateIssetFlag. To address that, this patch adds a new coccinelle markup: /* coccinelle: AppLayerParserStateSetFlag():2,2:APP_LAYER_PARSER_ */ It indicates that AppLayerParserStateSetFlag is a setter and getter and that the checks should be disabled inside the function. Currently this markup is only used for that but following patch will add some checks on option value.pull/4420/head
parent
f745f0655b
commit
3ded7f1170
Loading…
Reference in New Issue