qemu-e2k/qapi
Stefan Hajnoczi 0c26f2eca4 qapi: handle visitor->type_size() in QapiDeallocVisitor
visit_type_size() requires either visitor->type_size() or
visitor_uint64() to be implemented, otherwise a NULL function pointer is
invoked.

It is possible to trigger this crash as follows:

  $ qemu-system-x86_64 -netdev tap,sndbuf=0,id=netdev0 \
                       -device virtio-blk-pci,netdev=netdev0

The 'sndbuf' option has type "size".

Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-11-26 14:25:06 -06:00
..
Makefile.objs build: opts-visitor is not really part of QAPI 2012-10-30 09:30:52 +01:00
opts-visitor.c qapi: Fix memory leak 2012-08-20 11:05:08 -03:00
opts-visitor.h qapi: introduce OptsVisitor 2012-07-23 11:55:17 +01:00
qapi-dealloc-visitor.c qapi: handle visitor->type_size() in QapiDeallocVisitor 2012-11-26 14:25:06 -06:00
qapi-dealloc-visitor.h qapi: add QAPI dealloc visitor 2011-07-21 16:48:13 -03:00
qapi-types-core.h qmp: do not include monitor.h from qapi-types-core.h 2012-06-15 10:41:05 -03:00
qapi-visit-core.c qapi: introduce "size" type 2012-07-23 11:55:17 +01:00
qapi-visit-core.h qapi: introduce "size" type 2012-07-23 11:55:17 +01:00
qapi-visit-impl.h qapi: allow sharing enum implementation across visitors 2012-02-21 10:21:05 +01:00
qmp-core.h qemu-ga: switch to the new error format on the wire 2012-08-13 14:17:53 -03:00
qmp-dispatch.c error: drop error_get_qobject()/error_set_qobject() 2012-08-13 14:17:53 -03:00
qmp-input-visitor.c qapi: QMP input visitor, handle floats parsed as ints 2012-05-14 10:08:39 -03:00
qmp-input-visitor.h qapi: add strict mode to input visitor 2012-03-27 09:15:13 -03:00
qmp-output-visitor.c qapi: fix double free in qmp_output_visitor_cleanup() 2012-03-27 09:11:00 -03:00
qmp-output-visitor.h qapi: add QMP output visitor 2011-07-21 16:48:13 -03:00
qmp-registry.c qapi: add support for command options 2012-05-15 09:15:16 -05:00
string-input-visitor.c qapi: add string-based visitors 2012-02-21 10:21:05 +01:00
string-input-visitor.h qapi: add string-based visitors 2012-02-21 10:21:05 +01:00
string-output-visitor.c qapi: String visitor, use %f representation for floats 2012-06-08 16:11:14 +02:00
string-output-visitor.h qapi: add string-based visitors 2012-02-21 10:21:05 +01:00