diff options
| author | Vladimir Sementsov-Ogievskiy | 2020-02-05 12:20:32 +0100 |
|---|---|---|
| committer | John Snow | 2020-03-18 19:03:46 +0100 |
| commit | 6a150995d486013221361cddb5ae6189afb0cef5 (patch) | |
| tree | 65df18eccb63b7cfb3ab6cb40809c90303460116 /include | |
| parent | build: Silence clang warning on older glib autoptr usage (diff) | |
| download | qemu-6a150995d486013221361cddb5ae6189afb0cef5.tar.gz qemu-6a150995d486013221361cddb5ae6189afb0cef5.tar.xz qemu-6a150995d486013221361cddb5ae6189afb0cef5.zip | |
hbitmap: assert that we don't create bitmap larger than INT64_MAX
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 <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20200205112041.6003-2-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
