]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img: improve queue depth validation in img_bench
authorDenis Rastyogin <gerben@altlinux.org>
Thu, 27 Mar 2025 16:24:23 +0000 (19:24 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 Apr 2025 16:09:04 +0000 (18:09 +0200)
commit2b689db0bedd24eda8b491cb1fcfb015dfec5a31
tree6abee86816ffd4df41e99af57df18c5930173e19
parented1aef171671ef49761017cb1d8d10bf67d05c57
qemu-img: improve queue depth validation in img_bench

This error was discovered by fuzzing qemu-img.

Currently, running `qemu-img bench -d 0` in img_bench is allowed,
which is a pointless operation and causes qemu-img to hang.

Signed-off-by: Denis Rastyogin <gerben@altlinux.org>
Message-ID: <20250327162423.25154-5-gerben@altlinux.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c