Skip to contentSkip to conversation

main - cov: ignoring

PATCH Zdenek Kabelac 1 participant 1 message Sep 27, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=bf0d558067926e716a370165e323187cf44c050a
Commit:        bf0d558067926e716a370165e323187cf44c050a
Parent:        dab4acb8f8b379f27bdd5cd2f9014385948cdcc0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Sep 24 22:08:26 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Sep 27 18:56:14 2021 +0200

cov: ignoring

---
 test/lib/not.c | 1 +
 tools/lvm.c    | 1 +
 2 files changed, 2 insertions(+)
test/lib/not.c +1 -0
index 0245c3475..751c95b3d 100644
@@ -82,6 +82,7 @@ int main(int args, char **argv) {
 		if (val)
 			(void) setenv("LVM_EXPECTED_EXIT_STATUS", val, 1);
 
+		/* coverity[os_cmd_sink] intentionally passing argv + 1 */
 		execvp(argv[1], &argv[1]);
 		/* should not be accessible */
 		return FAILURE;
tools/lvm.c +1 -0
index cc67e924a..e80113e0d 100644
@@ -19,6 +19,7 @@
 
 int main(int argc, char **argv)
 {
+	/* coverity[os_cmd_sink] intentionally passing argv */
 	return lvm2_main(argc, argv);
 }