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-types-core.h
qapi-visit-core.c
qapi-visit-core.h
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
qmp-output-visitor.c qapi: Check for negative enum values 2011-11-17 15:15:03 -02:00
qmp-output-visitor.h
qmp-registry.c guest agent: add supported command list to guest-info RPC 2011-12-12 17:06:21 -06:00