]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121323 - UBSAN error in ao_ref_init_from_ptr_and_range
authorRichard Biener <rguenther@suse.de>
Thu, 31 Jul 2025 11:04:49 +0000 (13:04 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 31 Jul 2025 12:12:50 +0000 (14:12 +0200)
commit0be8ffbc854410b65d45a72e843dc18b13fc7b0f
treeef7023d8e35e59e17eb281e7c1bf37560b48ec44
parent479446beb4d212c19fe6b12d22a5dc6593798c47
tree-optimization/121323 - UBSAN error in ao_ref_init_from_ptr_and_range

We should check the offset fits a HWI when multiplied to be in bits.

PR tree-optimization/121323
* tree-ssa-alias.cc (ao_ref_init_from_ptr_and_range): Check
the pointer offset fits in a HWI when represented in bits.
gcc/tree-ssa-alias.cc