[test] minor

style fix and add return statement
This commit is contained in:
Ebrahim Byagowi 2019-05-11 19:50:42 +00:00 committed by GitHub
parent a6048e4cd0
commit 25531a3039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,8 @@
#include <stdlib.h>
#include <assert.h>
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;
}