]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: xfail tst-cleanup2 when building with ubsan
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 12:45:11 +0000 (09:45 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 May 2025 12:25:49 +0000 (09:25 -0300)
commitfed92e28c5ae51e3f1356caec42fef35552c0867
treefcefc7e1f0c490e8bd0b11dff7e96fa6d34953c3
parent967c9fd3ebc14ae994b9ed428df503ea476cf801
nptl: xfail tst-cleanup2 when building with ubsan

The test explicit uses UB (sprintf (NULL, ...) to triggers a SIGSEGV
from libc and check with the pthread cleanup are correctly called.

With ubsan enable, it triggers:

UBSAN: Undefined behaviour in Xprintf_buffer_write.c:39:7 null pointer passed as argument 1, nonnull attribute declared at unknown:0:0

Which is a memcpy call with NULL argument.
sysdeps/pthread/Makefile