From 132fcfbc4733c521733e9fea84e19c58746980f2 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 26 Feb 2020 16:15:17 +0330 Subject: [PATCH] [fuzz] minor don't abort main.cc when the file was empty or not found --- test/fuzzing/main.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/fuzzing/main.cc b/test/fuzzing/main.cc index 594368f45..9e892ebe1 100644 --- a/test/fuzzing/main.cc +++ b/test/fuzzing/main.cc @@ -10,13 +10,8 @@ int main (int argc, char **argv) unsigned int len; const char *font_data = hb_blob_get_data (blob, &len); - if (len == 0) - { - printf ("Font not found.\n"); - return 1; - } + printf ("%s%s\n", argv[i], len ? "" : " (note: not found or was empty)"); - printf ("%s\n", argv[i]); LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len); hb_blob_destroy (blob);