|
| From: | Alberto Garcia |
| Subject: | Re: [Qemu-devel] [PATCH 1/2] qemu-io: don't allow I/O operations larger than INT_MAX |
| Date: | Wed, 01 Feb 2017 22:49:47 +0100 |
| User-agent: | Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Wed 01 Feb 2017 10:36:20 PM CET, Max Reitz <address@hidden> wrote:
>> + if (count > INT_MAX - len) {
>
> How about using BDRV_REQUEST_MAX_BYTES instead?
>
> (not yet in master, just in my block branch)
Sounds good to me, feel free to edit my patch directly.
Berto
| [Prev in Thread] | Current Thread | [Next in Thread] |