This avoids overflow in the allocation size computations in
sbitmap_vector_alloc when the result exceeds 2GB.
2020-10-26 Richard Biener <rguenther@suse.de>
* sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
quantities to avoid overflow.
sbitmap *
sbitmap_vector_alloc (unsigned int n_vecs, unsigned int n_elms)
{
- unsigned int i, bytes, offset, elm_bytes, size, amt, vector_bytes;
+ unsigned int i, size;
+ size_t amt, bytes, vector_bytes, elm_bytes, offset;
sbitmap *bitmap_vector;
size = SBITMAP_SET_SIZE (n_elms);