qemu-e2k/tests/qtest/fuzz
Alexander Bulekov f5ec79f5e0 fuzz: Expect the cmdline in a freeable GString
In the initial FuzzTarget, get_init_cmdline returned a char *. With this
API, we had no guarantee about where the string came from. For example,
i440fx-qtest-reboot-fuzz simply returned a pointer to a string literal,
while the QOS-based targets build the arguments out in a GString an
return the gchar *str pointer. Since we did not try to free the cmdline,
we have a leak for any targets that do not simply return string
literals. Clean up this mess by forcing fuzz-targets to return
a GString, that we can free.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200714174616.20709-1-alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-07-17 10:44:23 +02:00
..
Makefile.include fuzz: skip QTest serialization 2020-06-15 18:26:46 +02:00
fork_fuzz.c fuzz: do not use POSIX shm for coverage bitmap 2020-07-06 07:37:02 +02:00
fork_fuzz.h
fork_fuzz.ld fuzz: add mangled object name to linker script 2020-06-05 09:54:48 +01:00
fuzz.c fuzz: Expect the cmdline in a freeable GString 2020-07-17 10:44:23 +02:00
fuzz.h fuzz: Expect the cmdline in a freeable GString 2020-07-17 10:44:23 +02:00
i440fx_fuzz.c fuzz: Expect the cmdline in a freeable GString 2020-07-17 10:44:23 +02:00
qos_fuzz.c fuzz: Expect the cmdline in a freeable GString 2020-07-17 10:44:23 +02:00
qos_fuzz.h fuzz: add support for qos-assisted fuzz targets 2020-02-22 08:26:48 +00:00
qtest_wrappers.c fuzz: skip QTest serialization 2020-06-15 18:26:46 +02:00
virtio_net_fuzz.c fuzz: run the main-loop in fork-server process 2020-06-05 09:54:48 +01:00
virtio_scsi_fuzz.c tests/qtest/fuzz: Add missing spaces in description 2020-07-13 11:40:52 +02:00