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";