diff options
author | Nico Weber <thakis@chromium.org> | 2020-11-25 09:51:31 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-26 09:59:46 +0100 |
commit | ec4c2f971bacc22b4c781a08fb5d87b913aab154 (patch) | |
tree | 0ca8f8cf702927778802198930071a7e445beeb5 /Meta/Lagom/Fuzzers | |
parent | 4f12efe1917fbec7b3a2542e10c74ef5e3a21c9a (diff) | |
download | serenity-ec4c2f971bacc22b4c781a08fb5d87b913aab154.zip |
Lagom: Make BMP fuzzer look like the other image loader fuzzers
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzBMP.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzBMP.cpp b/Meta/Lagom/Fuzzers/FuzzBMP.cpp index 40ebd22784..4cb9eac919 100644 --- a/Meta/Lagom/Fuzzers/FuzzBMP.cpp +++ b/Meta/Lagom/Fuzzers/FuzzBMP.cpp @@ -29,13 +29,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - Gfx::BMPImageDecoderPlugin loader { data, size }; - auto bitmap = loader.bitmap(); - if (!bitmap) - return 1; - if (bitmap->width() >= 100000 || bitmap->height() >= 100000) { - fprintf(stderr, "Silly bitmap: %dx%d pixels?!\n", bitmap->width(), bitmap->height()); - ASSERT_NOT_REACHED(); - } + Gfx::load_bmp_from_memory(data, size); return 0; } |