mirror of https://gitlab.com/qemu-project/qemu
Merge remote-tracking branch 'luiz/queue/qmp' into staging
# By Peter Maydell # Via Luiz Capitulino * luiz/queue/qmp: tests/test-string-input-visitor: Handle errors provoked by fuzz test
This commit is contained in:
commit
2da2e52dce
|
@ -174,7 +174,6 @@ static void test_visitor_in_fuzz(TestInputVisitorData *data,
|
||||||
double nres;
|
double nres;
|
||||||
char *sres;
|
char *sres;
|
||||||
EnumOne eres;
|
EnumOne eres;
|
||||||
Error *errp = NULL;
|
|
||||||
Visitor *v;
|
Visitor *v;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
char buf[10000];
|
char buf[10000];
|
||||||
|
@ -193,21 +192,22 @@ static void test_visitor_in_fuzz(TestInputVisitorData *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
v = visitor_input_test_init(data, buf);
|
v = visitor_input_test_init(data, buf);
|
||||||
visit_type_int(v, &ires, NULL, &errp);
|
visit_type_int(v, &ires, NULL, NULL);
|
||||||
|
|
||||||
v = visitor_input_test_init(data, buf);
|
v = visitor_input_test_init(data, buf);
|
||||||
visit_type_bool(v, &bres, NULL, &errp);
|
visit_type_bool(v, &bres, NULL, NULL);
|
||||||
visitor_input_teardown(data, NULL);
|
visitor_input_teardown(data, NULL);
|
||||||
|
|
||||||
v = visitor_input_test_init(data, buf);
|
v = visitor_input_test_init(data, buf);
|
||||||
visit_type_number(v, &nres, NULL, &errp);
|
visit_type_number(v, &nres, NULL, NULL);
|
||||||
|
|
||||||
v = visitor_input_test_init(data, buf);
|
v = visitor_input_test_init(data, buf);
|
||||||
visit_type_str(v, &sres, NULL, &errp);
|
sres = NULL;
|
||||||
|
visit_type_str(v, &sres, NULL, NULL);
|
||||||
g_free(sres);
|
g_free(sres);
|
||||||
|
|
||||||
v = visitor_input_test_init(data, buf);
|
v = visitor_input_test_init(data, buf);
|
||||||
visit_type_EnumOne(v, &eres, NULL, &errp);
|
visit_type_EnumOne(v, &eres, NULL, NULL);
|
||||||
visitor_input_teardown(data, NULL);
|
visitor_input_teardown(data, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue