diff --git a/daemons/cmirrord/cluster.c b/daemons/cmirrord/cluster.c index ef997baf4..74712f351 100644 --- a/daemons/cmirrord/cluster.c +++ b/daemons/cmirrord/cluster.c @@ -1091,6 +1091,7 @@ static void cpg_message_callback(cpg_handle_t handle, const struct cpg_name *gna (rq->u_rq.request_type != DM_ULOG_RESUME) && (rq->u_rq.request_type != DM_ULOG_CLEAR_REGION) && (rq->u_rq.request_type != DM_ULOG_CHECKPOINT_READY)) { + /* coverity[suspicious_sizeof] allocation is using varargs data @end */ tmp_rq = malloc(DM_ULOG_REQUEST_SIZE); if (!tmp_rq) { /* @@ -1340,6 +1341,7 @@ static void cpg_join_callback(struct clog_cpg *match, goto out; } + /* coverity[suspicious_sizeof] allocation is using varargs data @end */ rq = malloc(DM_ULOG_REQUEST_SIZE); if (!rq) { LOG_ERROR("cpg_config_callback: " diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index a44c7cff2..f4b52bd96 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -497,6 +497,7 @@ int thin_pool_prepare_metadata(struct logical_volume *metadata_lv, return 0; } + /* coverity[secure_temp] until better solution */ if (!(f = tmpfile())) { log_error("Cannot create temporary file to prepare metadata."); return 0;