crosvm/fuzz
Daniel Verkamp 6b51bd334f fuzz: zimage: use a fixed guest memory size
GuestMemory::new returns an error if the requested size is not divisible
by the page size.  The zimage fuzzer was using a GuestMemory size based
on the size of the fuzzer input; however, it doesn't necessarily make
sense to limit the guest memory to the size of the input.  Pick an
arbitrary 256 MB (matching the block fuzzer), which is also a page size
multiple to resolve the original issue.

BUG=chromium:977883
TEST=/usr/libexec/fuzzers/crosvm_zimage_fuzzer in cros_fuzz shell

Change-Id: I08c6be9d920bede18d67f8a1c5c39b9d37fb839c
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1645040
Tested-by: kokoro <noreply+kokoro@google.com>
2019-06-25 17:12:05 +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: zimage: use a fixed guest memory size 2019-06-25 17:12:05 +00:00