diff options
author | Alfie Richards <alfie.richards@arm.com> | 2025-07-28 13:32:45 +0000 |
---|---|---|
committer | Alfie Richards <alfie.richards@arm.com> | 2025-07-29 08:25:45 +0000 |
commit | c1102be3b25bde9989561b2610f8ee721a33a8e7 (patch) | |
tree | e4d8045015c8e4b79f4ffd416351692b3f8318e0 /gcc/go/gofrontend/escape.h | |
parent | e79e0fe2b1f101485e5e63e674e133692a3a0cb4 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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.
Diffstat (limited to 'gcc/go/gofrontend/escape.h')
0 files changed, 0 insertions, 0 deletions