[fuzz] minor don't abort main.cc when the file was empty or not found

pull/2187/head
Ebrahim Byagowi 5 years ago
parent 84163c83d3
commit 132fcfbc47
  1. 7
      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);

Loading…
Cancel
Save