|
From: | Eric Blake |
Subject: | Re: [PATCH 09/13] qapi: Assert non-input visitors see only valid narrow integers |
Date: | Thu, 23 Apr 2020 12:57:20 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/23/20 11:00 AM, Markus Armbruster wrote:
visit_type_intN() and visit_type_uintN() fail when the value is out of bounds. This is appropriate with an input visitor: the value comes from input, and input may be bad. It should never happen with the other visitors: the value comes from the caller, and callers must keep it within bounds. Assert that. Signed-off-by: Markus Armbruster <address@hidden> --- qapi/qapi-visit-core.c | 6 ++++++ 1 file changed, 6 insertions(+)
Reviewed-by: Eric Blake <address@hidden> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |