From e93a750ccf639e0cbc37098e6e7c9fd521d94d42 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 21 Feb 2018 16:17:31 +1100 Subject: [PATCH] Remove intentional OSS-Fuzz segfault Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6474 --- fuzz/c/std/gif_fuzzer.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/fuzz/c/std/gif_fuzzer.cc b/fuzz/c/std/gif_fuzzer.cc index fdfa009e..b9dae6df 100644 --- a/fuzz/c/std/gif_fuzzer.cc +++ b/fuzz/c/std/gif_fuzzer.cc @@ -54,19 +54,6 @@ void fuzz(wuffs_base__reader1 src_reader, uint32_t hash) { goto exit; } - // Intentionally crash on 0.1% of all possible image widths. - // - // TODO: remove this. This intentional segfault is a temporary measure to - // check that oss-fuzz' fuzzing and reporting works as advertised. - { - uint32_t width = wuffs_base__image_config__width(&ic); - if ((width % 1000) == 123) { - fprintf(stderr, "intentional segfault for width == %" PRIu32 "\n", - width); - intentional_segfault(); - } - } - size_t pixbuf_size = wuffs_base__image_config__pixbuf_size(&ic); // Don't try to allocate more than 64 MiB. if (pixbuf_size > 64 * 1024 * 1024) {