Vladimir Sementsov-Ogievskiy 6a150995d4 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>
2020-03-18 14:03:46 -04:00
..
2018-09-25 15:50:15 +02:00
2020-02-22 08:26:47 +00:00
2018-10-02 18:47:55 +02:00
2020-01-06 18:41:32 +04:00
2019-08-16 13:31:52 +02:00
2020-02-19 11:17:40 +01:00
2019-09-11 08:46:17 +02:00
2019-12-18 08:36:15 +01:00
2016-02-04 17:01:04 +00:00
2018-12-20 10:29:08 +01:00
2020-03-17 15:18:45 +01:00
2019-12-17 19:33:52 +01:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00