crosvm/fuzz
Daniel Verkamp 0e94e3c1ea fuzz: adapt zimage fuzzer to new kernel loader API
After CL:1636685, the kernel_loader API is different - we need to pass a
File instead of just a slice to load_kernel().

Borrow and adapt the make_elf_bin() function from the kernel_loader
tests to create a shared memory file from a slice of bytes to fix the
fuzzer.

BUG=chromium:970981
TEST=USE='asan fuzzer' emerge-nami crosvm

Change-Id: Ic17f6479fb355d45063ce6292552cb1e5664831a
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1645039
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-06-06 16:38:24 +00:00
..
.gitignore Add kernel_loader fuzzing 2018-01-12 22:37:48 -08:00
block_fuzzer.rs edition: Remove extern crate lines 2019-04-15 02:06:08 -07:00
Cargo.toml cargo: Sort all dependency lists in Cargo.toml 2019-04-09 01:55:14 -07:00
OWNERS fuzz: update to use new cros fuzzing 2019-03-25 17:43:51 -07:00
qcow_fuzzer.rs edition: Remove extern crate lines 2019-04-15 02:06:08 -07:00
zimage_fuzzer.rs fuzz: adapt zimage fuzzer to new kernel loader API 2019-06-06 16:38:24 +00:00