aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/ext/verify_neg.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-08-01 15:07:15 +0200
committerRichard Biener <rguenther@suse.de>2025-08-03 09:25:46 +0200
commit7c99de1c439dbb149cc6a33a214f22f2df1c88f3 (patch)
tree0759376a526e736b011704274d3df61049d4e041 /libstdc++-v3/testsuite/ext/verify_neg.cc
parent94edbc153ae4f1c1532859836e528fc480da82d6 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
tree-optimization/90242 - UBSAN error in vn_reference_compute_hashHEADtrunkmaster
The following plugs possible overflow issues in vn_reference_compute_hash and possibly in vn_reference_eq. The inchash "integer" adds are a bit of a mess, but I know overloads with different integer types can get messy, so not this time. For hashing simply truncate to 64bits. PR tree-optimization/90242 * tree-ssa-sccvn.cc (vn_reference_compute_hash): Use poly_offset_int for offset accumulation. For hashing truncate to 64 bits and also hash 64 bits. (vn_reference_eq): Likewise.
Diffstat (limited to 'libstdc++-v3/testsuite/ext/verify_neg.cc')
0 files changed, 0 insertions, 0 deletions