unicorn/qemu/qapi
Lioncash ed72ba0f8b
qapi: Fix string input visitor handling of invalid list
As shown in the previous commit, the string input visitor was
treating bogus input as an empty list rather than an error.
Fix parse_str() to set errp, then the callers to exit early if
an error was reported.

Meanwhile, fix the testsuite to use the generated
qapi_free_int16List() instead of rolling our own, and to
validate the fixed behavior, while at the same time documenting
one more change that we'd like to make in a later patch (a
failed visit_start_list should guarantee a NULL pointer,
regardless of what things were on input).

Backports commit 74f24cb6306d065045d0e2215a7d10533fa59c57 from qemu
2018-02-23 19:25:26 -05:00
..
common.json qapi: Add alias for ErrorClass 2018-02-19 20:38:51 -05:00
Makefile.objs remove glib dependency by provide compatible replacements 2016-12-18 14:56:58 -08:00
qapi-dealloc-visitor.c qapi: Split visit_end_struct() into pieces 2018-02-23 19:13:47 -05:00
qapi-visit-core.c qapi: Split visit_end_struct() into pieces 2018-02-23 19:13:47 -05:00
qmp-input-visitor.c qapi: Split visit_end_struct() into pieces 2018-02-23 19:13:47 -05:00
qmp-output-visitor.c qapi: Split visit_end_struct() into pieces 2018-02-23 19:13:47 -05:00
string-input-visitor.c qapi: Fix string input visitor handling of invalid list 2018-02-23 19:25:26 -05:00