fuzz: add fuzzer skeleton
commit5f6fd09a9729d31225b6eaec5df05d19a5bdfda4
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 20 Feb 2020 04:11:08 +0000 (19 23:11 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 22 Feb 2020 08:26:48 +0000 (22 08:26 +0000)
treea436e26c445ff6c9f225782700fef99db097e751
parentf62a0bff6a5266e7d434de2e1b01fb1f925a9796
fuzz: add fuzzer skeleton

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 be used to define new fuzz
targets.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-id: 20200220041118.23264-13-alxndr@bu.edu
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
MAINTAINERS
tests/qtest/fuzz/Makefile.include [new file with mode: 0644]
tests/qtest/fuzz/fuzz.c [new file with mode: 0644]
tests/qtest/fuzz/fuzz.h [new file with mode: 0644]