]> Git Repo - qemu.git/commit
block: Limit size to INT_MAX in bdrv_check_byte_request()
authorKevin Wolf <[email protected]>
Mon, 14 Apr 2014 12:48:16 +0000 (14:48 +0200)
committerKevin Wolf <[email protected]>
Tue, 22 Apr 2014 09:57:02 +0000 (11:57 +0200)
commit1dd3a44753f10970ded50950d28353c00bfcaf91
tree282737fd052128bb1a4fd243f93e7f6d1e95ba87
parent54db38a47978381e23e7f6479c31a97b5d352f7e
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 <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
block.c
This page took 0.025091 seconds and 4 git commands to generate.