Re: [PATCH v6 15/21] fuzz: add fuzzer skeleton

2020-01-03 Thread Stefan Hajnoczi
On Fri, Nov 29, 2019 at 09:34:49PM +, Oleinik, Alexander wrote: > +static QTestState *qtest_setup(void) > +{ > +qtest_server_set_send_handler(&qtest_client_inproc_recv, &fuzz_qts); > +return qtest_inproc_init(&fuzz_qts, false fuzz_arch, This line isn't valid C. I guess a later patch f

[PATCH v6 15/21] fuzz: add fuzzer skeleton

2019-11-29 Thread Oleinik, Alexander
tests/fuzz/fuzz.c serves as the entry point for the virtual-device fuzzer. Namely, libfuzzer invokes the LLVMFuzzerInitialize and LLVMFuzzerTestOneInput functions, both of which are defined in this file. This change adds a "FuzzTarget" struct, along with the fuzz_add_target function, which should b