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

This commit is contained in:
Ebrahim Byagowi 2020-02-26 16:15:17 +03:30
parent 84163c83d3
commit 132fcfbc47
1 changed files with 1 additions and 6 deletions

View File

@ -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);