From 78ecd3f07fcadc52ec8ec259ff26d1b4d31309c9 Mon Sep 17 00:00:00 2001 From: Max <628527+Maximus-@users.noreply.github.com> Date: Sat, 6 Aug 2022 14:12:35 -0700 Subject: [PATCH] Small change to maintain the existing corpus (#8176) Co-authored-by: Max Shavrick --- projects/e2fsprogs/fuzz/ext2fs_image_read_write_fuzzer.cc | 2 ++ projects/e2fsprogs/fuzz/ext2fs_read_bitmap_fuzzer.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/projects/e2fsprogs/fuzz/ext2fs_image_read_write_fuzzer.cc b/projects/e2fsprogs/fuzz/ext2fs_image_read_write_fuzzer.cc index 863c483f2..86217bb90 100644 --- a/projects/e2fsprogs/fuzz/ext2fs_image_read_write_fuzzer.cc +++ b/projects/e2fsprogs/fuzz/ext2fs_image_read_write_fuzzer.cc @@ -36,6 +36,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { FuzzedDataProvider stream(data, size); const FuzzerType f = stream.ConsumeEnum(); + (void) stream.ConsumeIntegral(); + // Keep this here to not spoil the corpus or reproducers static const char* fname = "ext2_test_file"; diff --git a/projects/e2fsprogs/fuzz/ext2fs_read_bitmap_fuzzer.cc b/projects/e2fsprogs/fuzz/ext2fs_read_bitmap_fuzzer.cc index 97e7cf0af..f79738581 100644 --- a/projects/e2fsprogs/fuzz/ext2fs_read_bitmap_fuzzer.cc +++ b/projects/e2fsprogs/fuzz/ext2fs_read_bitmap_fuzzer.cc @@ -32,6 +32,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { FuzzedDataProvider stream(data, size); const FuzzerType f = stream.ConsumeEnum(); + (void) stream.ConsumeIntegral(); static const char* fname = "ext2_test_file";