https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- get_ref_base_and_extent is not the right API to check for the UBs caused by out of bounds accesses, tree_could_trap_p is.
jakub at gcc dot gnu.org via Gcc-bugs Thu, 21 Jan 2021 05:52:57 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- get_ref_base_and_extent is not the right API to check for the UBs caused by out of bounds accesses, tree_could_trap_p is.