qemu-patch-raspberry4/tests/qtest/fuzz
Alexander Bulekov a9f67c1d51 fuzz: fix writing DMA patterns
This code had all sorts of issues. We used a loop similar to
address_space_write_rom, but I did not remove a "break" that only made
sense in the context of the switch statement in the original code. Then,
after the loop, we did a separate qtest_memwrite over the entire DMA
access range, defeating the purpose of the loop. Additionally, we
increment the buf pointer, and then try to g_free() it. Fix these
problems.

Reported-by: OSS-Fuzz (Issue 26725)
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reported-by: OSS-Fuzz (Issue 26691)
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20201029172901.534442-2-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-03 13:17:27 -05:00
..
fork_fuzz.c fuzz: do not use POSIX shm for coverage bitmap 2020-07-06 07:37:02 +02:00
fork_fuzz.h fuzz: support for fork-based fuzzing. 2020-02-22 08:26:48 +00:00
fork_fuzz.ld fuzz: add mangled object name to linker script 2020-06-05 09:54:48 +01:00
fuzz.c fuzz: Add support for custom crossover functions 2020-10-26 09:53:53 +01:00
fuzz.h fuzz: add an "opaque" to the FuzzTarget struct 2020-10-26 09:53:53 +01:00
generic_fuzz.c fuzz: fix writing DMA patterns 2020-11-03 13:17:27 -05:00
generic_fuzz_configs.h fuzz: add generic-fuzz configs for oss-fuzz 2020-10-26 09:53:53 +01:00
i440fx_fuzz.c meson: link emulators without Makefile.target 2020-08-21 06:30:40 -04:00
meson.build fuzz: Add generic virtual-device fuzzer 2020-10-24 07:43:48 +02:00
qos_fuzz.c tests/qtest: Fix potential NULL pointer dereference in qos_build_main_args() 2020-11-03 10:15:43 -05:00
qos_fuzz.h fuzz: add support for qos-assisted fuzz targets 2020-02-22 08:26:48 +00:00
qtest_wrappers.c meson: link emulators without Makefile.target 2020-08-21 06:30:40 -04:00
virtio_net_fuzz.c meson: link emulators without Makefile.target 2020-08-21 06:30:40 -04:00
virtio_scsi_fuzz.c meson: link emulators without Makefile.target 2020-08-21 06:30:40 -04:00