qemu-e2k/qapi
Paolo Bonzini 47c6d3ecdf qapi: protect against NULL QObject in qmp_input_get_object
A NULL qobj can occur when a parameter is fetched via qdict_get, but
the parameter is not in the command.  By returning NULL, the caller can
choose whether to raise a missing parameter error, an invalid parameter
type error, or use a default value.  For example, qom-set could can
use this to reset a property to its default value, though at this time
it will fail with "Invalid parameter type".  In any case, anything is
better than crashing!

Reviewed-by: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-12-19 10:27:33 -06:00
..
qapi-dealloc-visitor.c qapi: dealloc visitor, support freeing of nested lists 2011-10-04 11:00:46 -03:00
qapi-dealloc-visitor.h qapi: add QAPI dealloc visitor 2011-07-21 16:48:13 -03:00
qapi-types-core.h qapi: add code generation support for middle mode 2011-10-04 11:00:46 -03:00
qapi-visit-core.c qapi: add QAPI visitor core 2011-07-21 16:48:13 -03:00
qapi-visit-core.h qapi: add QAPI visitor core 2011-07-21 16:48:13 -03:00
qmp-core.h guest agent: add supported command list to guest-info RPC 2011-12-12 17:06:21 -06:00
qmp-dispatch.c guest agent: add RPC blacklist command-line option 2011-12-12 17:06:21 -06:00
qmp-input-visitor.c qapi: protect against NULL QObject in qmp_input_get_object 2011-12-19 10:27:33 -06:00
qmp-input-visitor.h qapi: add QMP input visitor 2011-07-21 16:48:13 -03:00
qmp-output-visitor.c qapi: Check for negative enum values 2011-11-17 15:15:03 -02:00
qmp-output-visitor.h qapi: add QMP output visitor 2011-07-21 16:48:13 -03:00
qmp-registry.c guest agent: add supported command list to guest-info RPC 2011-12-12 17:06:21 -06:00