fuzz: fuzz testing for VHDx block device is added

The fuzzer needs to take a larger input for the whole disk image to
be most useful. Since the file is small we can test by reading and
writing over the whole file.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
Signed-off-by: Fazla Mehrab <akm.fazla.mehrab@intel.com>
This commit is contained in:
Fazla Mehrab
2021-08-02 11:51:36 -04:00
committed by Sebastien Boeuf
parent 1fa3a60b35
commit 98fc38c465
3 changed files with 136 additions and 6 deletions
+7
View File
@@ -14,6 +14,7 @@ libc = "0.2.99"
libfuzzer-sys = "0.4.2"
qcow = { path = "../qcow" }
seccompiler = { git = "https://github.com/rust-vmm/seccompiler"}
vhdx = { path = "../vhdx" }
virtio-devices = { path = "../virtio-devices" }
vmm-sys-util = "0.8.0"
vm-virtio = { path = "../vm-virtio" }
@@ -42,3 +43,9 @@ name = "block"
path = "fuzz_targets/block.rs"
test = false
doc = false
[[bin]]
name = "vhdx"
path = "fuzz_targets/vhdx.rs"
test = false
doc = false