diff options
author | Richard Biener <rguenther@suse.de> | 2020-10-26 10:10:46 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-12-01 11:38:12 +0100 |
commit | 46384dc73076d945c9222b3f0850a9aa3e694eda (patch) | |
tree | 30bcf8812421f78782a9c28d3cecc41ddfccf11c /gcc/tree-ssa-loop-unswitch.c | |
parent | 1631094a3eb4d1b1eb8b04db6f3b9ba6a5b645eb (diff) | |
download | gcc-46384dc73076d945c9222b3f0850a9aa3e694eda.zip gcc-46384dc73076d945c9222b3f0850a9aa3e694eda.tar.gz gcc-46384dc73076d945c9222b3f0850a9aa3e694eda.tar.bz2 |
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)
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions