[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 01/10] hbitmap: assert that we don't create bitmap larger
From: |
Max Reitz |
Subject: |
Re: [PATCH v3 01/10] hbitmap: assert that we don't create bitmap larger than INT64_MAX |
Date: |
Mon, 20 Jan 2020 11:51:58 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 |
On 19.12.19 11:03, Vladimir Sementsov-Ogievskiy wrote:
> We have APIs which returns signed int64_t, to be able to return error.
> Therefore we can't handle bitmaps with absolute size larger than
> (INT64_MAX+1). Still, keep maximum to be INT64_MAX which is a bit
> safer.
>
> Note, that bitmaps are used to represent disk images, which can't
> exceed INT64_MAX anyway.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> util/hbitmap.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v3 01/10] hbitmap: assert that we don't create bitmap larger than INT64_MAX,
Max Reitz <=