diff --git a/tools/lvcreate.c b/tools/lvcreate.c index b54f9ae4d..bfe4035a4 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1895,6 +1895,7 @@ static int _lvcreate_and_attach_writecache_single(struct cmd_context *cmd, return ECMD_FAILED; } + /* coverity[format_string_injection] lv name is already validated */ ret = lvconvert_writecache_attach_single(cmd, lv, handle); if (ret == ECMD_FAILED) { @@ -1967,6 +1968,7 @@ static int _lvcreate_and_attach_cache_single(struct cmd_context *cmd, return ECMD_FAILED; } + /* coverity[format_string_injection] lv name is already validated */ ret = lvconvert_cachevol_attach_single(cmd, lv, handle); if (ret == ECMD_FAILED) { diff --git a/tools/toollib.c b/tools/toollib.c index 7133d4439..f99df60f6 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -3529,6 +3529,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg, log_very_verbose("Processing historical LV %s in VG %s.", glvl->glv->historical->name, vg->name); + /* coverity[format_string_injection] lv name is already validated */ ret = process_single_lv(cmd, &_historical_lv, handle); if (handle_supplied) _update_selection_result(handle, &whole_selected);