diff options
author | Kevin Wolf | 2014-04-14 14:48:16 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-04-22 11:57:02 +0200 |
commit | 1dd3a44753f10970ded50950d28353c00bfcaf91 (patch) | |
tree | 282737fd052128bb1a4fd243f93e7f6d1e95ba87 /tests | |
parent | block: Fix nb_sectors check in bdrv_check_byte_request() (diff) | |
download | qemu-1dd3a44753f10970ded50950d28353c00bfcaf91.tar.gz qemu-1dd3a44753f10970ded50950d28353c00bfcaf91.tar.xz qemu-1dd3a44753f10970ded50950d28353c00bfcaf91.zip |
block: Limit size to INT_MAX in bdrv_check_byte_request()
Commit 8f4754ed intended to protect against integer overflow bugs in
block drivers by making sure that a single request that is passed to
drivers is no longer than INT_MAX bytes.
However, meanwhile there are some callers that don't use that code path
any more but call bdrv_check_byte_request() directy, so let's add a
check there as well.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions