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
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
qmp-input-visitor.h
qmp-output-visitor.c
qmp-output-visitor.h
qmp-registry.c
string-input-visitor.c
string-input-visitor.h
string-output-visitor.c
string-output-visitor.h