qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 02/16] fuzz: Add general virtual-device fuzzer


From: Alexander Bulekov
Subject: Re: [PATCH v5 02/16] fuzz: Add general virtual-device fuzzer
Date: Wed, 21 Oct 2020 10:49:12 -0400

On 201021 1444, Paolo Bonzini wrote:
> On 21/10/20 03:07, Alexander Bulekov wrote:
> > +static GString *generic_fuzz_cmdline(FuzzTarget *t)
>                    ^^^^^^^
> 
> > +{
> > +    GString *cmd_line = g_string_new(TARGET_NAME);
> > +    if (!getenv("QEMU_FUZZ_ARGS")) {
> > +        usage();
> > +    }
> > +    g_string_append_printf(cmd_line, " -display none \
> > +                                      -machine accel=qtest, \
> > +                                      -m 512M %s ", 
> > getenv("QEMU_FUZZ_ARGS"));
> > +    return cmd_line;
> > +}
> > +
> > +static void register_generic_fuzz_targets(void)
> > +{
> > +    fuzz_add_target(&(FuzzTarget){
> > +            .name = "generic-fuzz",
> > +            .description = "Fuzz based on any qemu command-line args. ",
> > +            .get_init_cmdline = general_fuzz_cmdline,
>                                    ^^^^^^^
> 
> Does this actually compile?
> 
> Paolo

Oops I fix-uped the general->generic change into the wrong commit. I'll
build-test after each commit.
-Alex

> 
> > +            .pre_fuzz = general_pre_fuzz,
> > +            .fuzz = general_fuzz});
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]