On 09/22/2016 08:09 AM, Marc-André Lureau wrote:
> Calling:
> 
> { "execute": "qom-set",
>   "arguments": { "path": "/machine", "property": "rtc-time" } }
> 
> Will crash with:
> 
> qapi/qapi-visit-core.c:277: visit_type_any: Assertion `!err != !*obj'
> failed
> 
> Clear the obj and return an error.
> 
> The patch also fixes a similar potential crash in qmp_input_type_null()
> by checking qmp_input_get_object() returned a valid qobj.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
> ---
>  qapi/qmp-input-visitor.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to