diff --git a/test/fuzzing/main.cc b/test/fuzzing/main.cc index bf3c32cd0828c5329f72cb18e53bd43b465c05fe..5318f64eae2aad1abdb9d94f8c5d17de1d7cb3a6 100644 --- a/test/fuzzing/main.cc +++ b/test/fuzzing/main.cc @@ -7,6 +7,7 @@ int main (int argc, char **argv) { hb_blob_t *blob = hb_blob_create_from_file (argv[1]); + unsigned int len; const char *font_data = hb_blob_get_data (blob, &len); if (len == 0) @@ -15,7 +16,7 @@ int main (int argc, char **argv) exit (1); } - for (unsigned int i = 1; i < argc; i++) + for (int i = 1; i < argc; i++) { printf ("%s\n", argv[i]); LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len);