]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
coverity: suppress warning for intentional code
authorVictor Julien <victor@inliniac.net>
Tue, 23 Oct 2018 11:23:09 +0000 (13:23 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 1 Nov 2018 14:46:10 +0000 (15:46 +0100)
src/detect-engine.c

index 5bfb3565915d9edd79fce7badd9b6a05f9371c84..8580bb013efc6883e49f37e254a8df8ea79eaedc 100644 (file)
@@ -1504,6 +1504,7 @@ static int DetectEngineThreadCtxInitGlobalKeywords(DetectEngineThreadCtx *det_ct
     SCMutexLock(&master->lock);
 
     if (master->keyword_id > 0) {
+        // coverity[suspicious_sizeof : FALSE]
         det_ctx->global_keyword_ctxs_array = (void **)SCCalloc(master->keyword_id, sizeof(void *));
         if (det_ctx->global_keyword_ctxs_array == NULL) {
             SCLogError(SC_ERR_DETECT_PREPARE, "setting up thread local detect ctx");