On 2/5/20 5:20 AM, Vladimir Sementsov-Ogievskiy wrote:
We have APIs which returns signed int64_t, to be able to return error.

s/returns/return/

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

s/Note,/Note/

exceed INT64_MAX anyway.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Reviewed-by: Max Reitz <mre...@redhat.com>
---
  util/hbitmap.c | 2 ++
  1 file changed, 2 insertions(+)

Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to