diff options
author | Markus Armbruster | 2020-04-24 10:43:32 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-04-30 07:26:40 +0200 |
commit | faad584adb48737aa3b39984786442a1a9c42aa4 (patch) | |
tree | bca7441b7316d514e07f73add2d3e00011edca85 /.github | |
parent | qapi: Assert output visitors see only valid enum values (diff) | |
download | qemu-faad584adb48737aa3b39984786442a1a9c42aa4.tar.gz qemu-faad584adb48737aa3b39984786442a1a9c42aa4.tar.xz qemu-faad584adb48737aa3b39984786442a1a9c42aa4.zip |
qapi: Assert non-input visitors see only valid narrow integers
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 <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200424084338.26803-10-armbru@redhat.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions