aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorMads Ynddal <m.ynddal@samsung.com>2023-09-26 12:34:28 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2023-09-26 12:28:51 -0400
commitd1f9259014317baa3bce7db7d4c2e927341e3cae (patch)
treefe2a96fcafdda90c153f5a4656633ae3bf66d7ee /scripts/qapi/source.py
parentsimpletrace: update code for Python 3.11 (diff)
downloadqemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.tar.xz
qemu-d1f9259014317baa3bce7db7d4c2e927341e3cae.zip
simpletrace: improved error handling on struct unpack
A failed call to `read_header` wouldn't be handled the same for the two different code paths (one path would try to use `None` as a list). Changed to raise exception to be handled centrally. This also allows for easier unpacking, as errors has been filtered out. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Mads Ynddal <m.ynddal@samsung.com> Message-id: 20230926103436.25700-7-mads@ynddal.dk Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions