]> gcc.gnu.org Git - gcc.git/commit
middle-end/97554 - avoid overflow in alloc size compute
authorRichard Biener <rguenther@suse.de>
Mon, 26 Oct 2020 09:10:46 +0000 (10:10 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 1 Dec 2020 10:32:00 +0000 (11:32 +0100)
commit9d769cdde26d87043da0e1ffdee51010a71f49c2
treead9e8348fa8e9f887ba4ad612dc6974a509749bf
parent4899977e8fe4f2fb68e60ac2eda5d6cf8978604b
middle-end/97554 - avoid overflow in alloc size compute

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>

PR middle-end/97554
* sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
quantities to avoid overflow.

(cherry picked from commit 50f9e1f4d458e36d306b2449c689e45492847f68)
gcc/sbitmap.c
This page took 0.057509 seconds and 6 git commands to generate.