qapi: Avoid output visitor crashing if it encounters a NULL value
commit1d10b44546e2605b6dd8a006dcc0d03166649e2d
authorMarcel Apfelbaum <marcel.a@redhat.com>
Mon, 26 May 2014 12:40:55 +0000 (26 15:40 +0300)
committerAndreas Färber <afaerber@suse.de>
Wed, 28 May 2014 15:36:04 +0000 (28 17:36 +0200)
treed3cfba7c68eb2c04b34c36dea6b595b571b9d471
parent13d7adf92a97c8252df6165ec84127798f3096d3
qapi: Avoid output visitor crashing if it encounters a NULL value

A NULL value is not added to visitor's stack, but there
is no check for that when the visitor tries to return
that value, leading to QEMU crash.

Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
qapi/qmp-output-visitor.c