[libvirt] [PATCH v2] qemu: Don't crash when parsing command line lacking -M

John Ferlan jferlan at redhat.com
Tue Oct 10 18:15:17 UTC 2017


[...]

while scanning....

> +        } else if (STREQ(arg, "-M") ||
> +                   STREQ(arg, "-machine")) {
> +            // This option has already been processed before entering this
> +            // loop, so we just need to skip its argument and move along

I saw // instead of /* ... */


> +            WANT_VALUE();
>          } else {
>              argRecognized = false;
>          }

John




More information about the libvir-list mailing list