mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-12 06:45:39 +00:00
2b7daee13b
The string input visitor tries to cope with null input. Null input isn't used anywhere, and isn't covered by tests. Unsurprisingly, it doesn't fully work: start_list() crashes because it passes the input via parse_str() to strtoll() unchecked. Make string_input_visitor_new() assert its argument isn't null, and drop the code trying to deal with null input. The opts visitor crashes when you try to actually visit something with null input. Make opts_visitor_new() assert its argument isn't null, mostly for clarity. qobject_input_visitor_new() already asserts its argument isn't null. Backports commit f332e830e38b3ff3953ef02ac04e409ae53769c5 from qemu |
||
---|---|---|
.. | ||
common.json | ||
Makefile.objs | ||
qapi-clone-visitor.c | ||
qapi-dealloc-visitor.c | ||
qapi-visit-core.c | ||
qobject-input-visitor.c | ||
qobject-output-visitor.c | ||
string-input-visitor.c |