From 25531a30394c451a7a2aee77928e0a550015b803 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 11 May 2019 19:50:42 +0000 Subject: [PATCH] [test] minor style fix and add return statement --- test/fuzzing/main.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/fuzzing/main.cc b/test/fuzzing/main.cc index f15247cdb..bf3c32cd0 100644 --- a/test/fuzzing/main.cc +++ b/test/fuzzing/main.cc @@ -4,7 +4,8 @@ #include #include -int main(int argc, char **argv) { +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); @@ -14,10 +15,13 @@ int main(int argc, char **argv) { exit (1); } - for (int i = 1; i < argc; i++) { + for (unsigned int i = 1; i < argc; i++) + { printf ("%s\n", argv[i]); - LLVMFuzzerTestOneInput((const uint8_t *) font_data, len); + LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len); } hb_blob_destroy (blob); + + return 0; }