From: Victor Julien Date: Tue, 23 Oct 2018 12:53:28 +0000 (+0200) Subject: bpf: suppress coverity toctou warning X-Git-Tag: suricata-4.0.6~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b94e3726330b43b49e424c9e089142c747cf963c;p=thirdparty%2Fsuricata.git bpf: suppress coverity toctou warning --- diff --git a/src/suricata.c b/src/suricata.c index 9bf78dde53..fae0c5db95 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -529,6 +529,7 @@ static void SetBpfStringFromFile(char *filename) } bpf_len = st.st_size + 1; + // coverity[toctou : FALSE] fp = fopen(filename,"r"); if (fp == NULL) { SCLogError(SC_ERR_FOPEN, "Failed to open file %s", filename);