Skip to content

Commit

Permalink
Revert "block fuzz data over 100kb"
Browse files Browse the repository at this point in the history
This reverts commit cb1634d since
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24383 was
fixed with commit df26bd1 instead.
  • Loading branch information
kleisauke committed Apr 8, 2024
1 parent bcb188f commit 7c20e81
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions fuzz/gifsave_buffer_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
void *buf;
size_t len;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/jpegsave_buffer_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
void *buf;
size_t len;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/jpegsave_file_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
{
char *name;

if (size > 100 * 1024 * 1024)
return 0;

if (!(name = vips__temp_name("%s")))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/mosaic_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
if (size < sizeof(mosaic_opt))
return 0;

if (size > 100 * 1024 * 1024)
return 0;

/* The tail of `data` is treated as mosaic configuration
*/
size -= sizeof(mosaic_opt);
Expand Down
3 changes: 0 additions & 3 deletions fuzz/pngsave_buffer_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
void *buf;
size_t len;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/sharpen_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
VipsImage *image, *out;
double d;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/smartcrop_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
VipsImage *image, *out;
double d;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/thumbnail_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
VipsImage *image, *out;
double d;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down
3 changes: 0 additions & 3 deletions fuzz/webpsave_buffer_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
void *buf;
size_t len;

if (size > 100 * 1024 * 1024)
return 0;

if (!(image = vips_image_new_from_buffer(data, size, "", nullptr)))
return 0;

Expand Down

0 comments on commit 7c20e81

Please sign in to comment.