aboutsummaryrefslogtreecommitdiff
path: root/qemu-keymap.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2024-05-07 14:05:58 -0400
committerKevin Wolf <kwolf@redhat.com>2024-06-10 11:05:43 +0200
commit365911b182017f05122b88a574477ff945ae91ab (patch)
treeaa4948068a6b2f3d72ea4a8ccf6f45221d8d5b0b /qemu-keymap.c
parente669e800fc9ef8806af5c5578249ab758a4f8a5a (diff)
downloadqemu-365911b182017f05122b88a574477ff945ae91ab.zip
qemu-365911b182017f05122b88a574477ff945ae91ab.tar.gz
qemu-365911b182017f05122b88a574477ff945ae91ab.tar.bz2
qemu-io: add cvtnum() error handling for zone commands
cvtnum() parses positive int64_t values and returns a negative errno on failure. Print errors and return early when cvtnum() fails. While we're at it, also reject nr_zones values greater or equal to 2^32 since they cannot be represented. Reported-by: Peter Maydell <peter.maydell@linaro.org> Cc: Sam Li <faithilikerun@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20240507180558.377233-1-stefanha@redhat.com> Reviewed-by: Sam Li <faithilikerun@gmail.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions