From: Victor Julien Date: Tue, 23 Oct 2018 12:53:28 +0000 (+0200) Subject: bpf: suppress coverity toctou warning X-Git-Tag: suricata-4.1.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec94d7b33d1cdaa7ad6bc04e7f652de4bf90a659;p=thirdparty%2Fsuricata.git bpf: suppress coverity toctou warning --- diff --git a/src/suricata.c b/src/suricata.c index a0837ba7c8..ff19a5de1b 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -509,6 +509,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);