crosvm/fuzz
Dylan Reid b38bde9bd1 fuzz: Comply with new guest memory requirement for page alignment
When the input's length is not page aligned, round it up. This allows
the fuzzer to provide more random inputs without causing the `unwrap`
call to trigger false positives when creating guest memory.

BUG=chromium:972172
TEST=run fuzz case from the bug

Change-Id: Iaf8f2ba943f38b90e168301dbb8c15dee5ee45c8
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1659626
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-06-21 21:12:39 +00:00
..
.gitignore
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: Comply with new guest memory requirement for page alignment 2019-06-21 21:12:39 +00:00