static int DetectEngineThreadCtxInitKeywords(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx)
{
if (de_ctx->keyword_id > 0) {
+ // coverity[suspicious_sizeof : FALSE]
det_ctx->keyword_ctxs_array = SCMalloc(de_ctx->keyword_id * sizeof(void *));
if (det_ctx->keyword_ctxs_array == NULL) {
SCLogError(SC_ERR_DETECT_PREPARE, "setting up thread local detect ctx");
/* Check if the existing process is still alive. */
FILE *pf;
+ // coverity[toctou : FALSE]
pf = fopen(pid_filename, "r");
if (pf == NULL) {
SCLogError(SC_ERR_INITIALIZATION,
StorageMapping *map = &storage_map[type][id];
Storage *store = *storage;
if (store == NULL) {
+ // coverity[suspicious_sizeof : FALSE]
store = SCMalloc(sizeof(void *) * storage_max_id[type]);
if (unlikely(store == NULL))
return NULL;