tighten fuzz size limits
we are still seeing timeouts
This commit is contained in:
parent
acb68c867a
commit
7c5971392c
@ -17,11 +17,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -19,11 +19,9 @@ test_one_file( const char *name )
|
|||||||
NULL )) )
|
NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -28,11 +28,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(ref = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(ref = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( ref->Xsize > 100 ||
|
||||||
*/
|
ref->Ysize > 100 ||
|
||||||
if( ref->Xsize > 1024 ||
|
ref->Bands > 4 ) {
|
||||||
ref->Ysize > 1024 ||
|
|
||||||
ref->Bands > 10 ) {
|
|
||||||
g_object_unref( ref );
|
g_object_unref( ref );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -17,11 +17,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
@ -17,11 +17,9 @@ LLVMFuzzerTestOneInput( const guint8 *data, size_t size )
|
|||||||
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
if( !(image = vips_image_new_from_buffer( data, size, "", NULL )) )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
/* Skip big images. They are likely to timeout.
|
if( image->Xsize > 100 ||
|
||||||
*/
|
image->Ysize > 100 ||
|
||||||
if( image->Xsize > 1024 ||
|
image->Bands > 4 ) {
|
||||||
image->Ysize > 1024 ||
|
|
||||||
image->Bands > 10 ) {
|
|
||||||
g_object_unref( image );
|
g_object_unref( image );
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user