1 #include "hb-fuzzer.hh" 2 3 #include <stdio.h> 4 main(int argc,char ** argv)5int main (int argc, char **argv) 6 { 7 for (int i = 1; i < argc; i++) 8 { 9 hb_blob_t *blob = hb_blob_create_from_file (argv[i]); 10 11 unsigned int len; 12 const char *font_data = hb_blob_get_data (blob, &len); 13 printf ("%s%s\n", argv[i], len ? "" : " (note: not found or was empty)"); 14 15 LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len); 16 17 hb_blob_destroy (blob); 18 } 19 return 0; 20 } 21