https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121261
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alfie Richards <alfiericha...@gcc.gnu.org>: https://gcc.gnu.org/g:c1102be3b25bde9989561b2610f8ee721a33a8e7 commit r16-2600-gc1102be3b25bde9989561b2610f8ee721a33a8e7 Author: Alfie Richards <alfie.richa...@arm.com> Date: Mon Jul 28 13:32:45 2025 +0000 Fix UB in string_slice::operator== (PR 121261) This adds a nullptr check to fix a regression where it is possible to call `memcmp (NULL, NULL, 0)` which is UB prior to C26. This fixes the bootstrap-ubsan build. gcc/ChangeLog: PR middle-end/121261 * vec.h: Add null ptr check.