[PATCH 06/37] qemuMonitorJSONQueryFdsets: Ensure that JSON arrays are valid before using them

Ján Tomko jtomko at redhat.com
Wed May 11 09:29:06 UTC 2022


On a Tuesday in 2022, Peter Krempa wrote:
>The code didn't check that the reply value is an array and that the
>'fds' array is present. This could lead to a crash if qemu wouldn't
>return an array in those places.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_monitor_json.c | 35 ++++++++++++++++++-----------------
> 1 file changed, 18 insertions(+), 17 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220511/3633f8fc/attachment.sig>


More information about the libvir-list mailing list