[fuzz] minor don't abort main.cc when the file was empty or not found
This commit is contained in:
parent
84163c83d3
commit
132fcfbc47
|
@ -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…
Reference in New Issue