xemu/scripts
Luiz Capitulino 694a099a54 qapi-commands.py: Don't call the output marshal on error
Today we generate something like this:

    int qmp_marshal_input_query_foo(...)

        ...

        retval = qmp_query_foo(errp);
        qmp_marshal_output_query_foo(retval, ret, errp);

        ...

However, if qmp_query_foo() fails 'retval' will probably be NULL,
which can cause a segfault as not all visitors check if 'retval'
is valid.

This commit fixes that by changing the code generator to only
call the output marshal if qmp_query_foo() succeeds, like this:

    retval = qmp_query_foo(errp);
    if (!error_is_set(errp)) {
        qmp_marshal_output_query_foo(retval, ret, errp);
    }

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2011-10-27 11:48:46 -02:00
..
analyse-9p-simpletrace.py scripts: Simpletrace log analysis script for pretty-printing 9p log. 2011-10-15 15:30:27 +05:30
checkpatch.pl checkpatch: fix braces {} handling 2011-08-27 15:44:16 +00:00
create_config
feature_to_c.sh gdbstub-xml: avoid a warning from sparse 2011-01-23 11:43:25 +00:00
get_maintainer.pl get_maintainer: update to match qemu tree 2011-06-16 00:20:06 +03:00
hxtool
make_device_config.sh
ordereddict.py qapi: add ordereddict.py helper library 2011-07-21 16:48:14 -03:00
qapi-commands.py qapi-commands.py: Don't call the output marshal on error 2011-10-27 11:48:46 -02:00
qapi-types.py qapi: Automatically generate a _MAX value for enums 2011-10-04 11:00:47 -03:00
qapi-visit.py qapi: modify visitor code generation for list iteration 2011-10-04 11:00:46 -03:00
qapi.py qapi: add code generation support for middle mode 2011-10-04 11:00:46 -03:00
qemu-binfmt-conf.sh s390x: s390x-linux-user support 2011-05-20 17:35:12 +02:00
refresh-pxe-roms.sh PXE: Refresh all PXE ROMs from the ipxe submodule 2011-04-18 11:46:41 -06:00
signrom.sh
simpletrace.py simpletrace: fix process() argument count 2011-09-01 10:34:54 +01:00
texi2pod.pl
tracetool trace: allow PRI*64 at beginning and ending of format string 2011-09-17 15:14:05 +00:00
update-linux-headers.sh Add kernel header update script 2011-06-20 15:12:22 -03:00