]> sourceware.org Git - lvm2.git/commitdiff
cov: ignoring
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 24 Sep 2021 20:08:26 +0000 (22:08 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 27 Sep 2021 16:56:14 +0000 (18:56 +0200)
test/lib/not.c
tools/lvm.c

index 0245c34752f08cecc2fa9cd6e959472baa5218a0..751c95b3d8697eaa9a4192064e6ccb9622267059 100644 (file)
@@ -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;
index cc67e924aea7c627adcbd0a72a95a2d7d3c748e8..e80113e0db08da209d6ac39c2d310f59019fe1dc 100644 (file)
@@ -19,6 +19,7 @@
 
 int main(int argc, char **argv)
 {
+       /* coverity[os_cmd_sink] intentionally passing argv */
        return lvm2_main(argc, argv);
 }
 
This page took 0.039448 seconds and 5 git commands to generate.