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-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
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
qmp-output-visitor.c
qmp-output-visitor.h
qmp-registry.c qapi: add support for command options 2012-05-15 09:15:16 -05:00
string-input-visitor.c
string-input-visitor.h
string-output-visitor.c qapi: String visitor, use %f representation for floats 2012-06-08 16:11:14 +02:00
string-output-visitor.h