fuzz: Add fuzzer for 'linux loader'

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2022-12-05 16:53:13 -08:00
committed by Rob Bradford
parent 8ecce8876e
commit 32ded2c72b
3 changed files with 58 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ devices = { path = "../devices" }
epoll = "4.3.1"
libc = "0.2.138"
libfuzzer-sys = "0.4.5"
linux-loader = { version = "0.8.1", features = ["elf", "bzimage", "pe"] }
micro_http = { git = "https://github.com/firecracker-microvm/micro-http", branch = "main" }
net_util = { path = "../net_util" }
once_cell = "1.16.0"
@@ -75,6 +76,12 @@ path = "fuzz_targets/iommu.rs"
test = false
doc = false
[[bin]]
name = "linux_loader"
path = "fuzz_targets/linux_loader.rs"
test = false
doc = false
[[bin]]
name = "mem"
path = "fuzz_targets/mem.rs"