summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoranton <>2026-05-30 05:07:03 +0000
committeranton <>2026-05-30 05:07:03 +0000
commitc38a6199638d1967d7ffadf768d4f8d5dfaf5f04 (patch)
tree495eb150e2fc04088eb16f72a573c0d9077e5ca3 /src
parent5fe2f74d70c742aa3fd5db85a04160988b297a3e (diff)
downloadopenbsd-c38a6199638d1967d7ffadf768d4f8d5dfaf5f04.tar.gz
openbsd-c38a6199638d1967d7ffadf768d4f8d5dfaf5f04.tar.bz2
openbsd-c38a6199638d1967d7ffadf768d4f8d5dfaf5f04.zip
Disable builtins in strlcpytest.c. Otherwise, clang w/ optimizations
enabled will treat strlcpy(NULL, ...) as undefined behavior and optimize the invocation away. Regression introduced after the llvm 22 upgrade.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/strlcpy/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libc/strlcpy/Makefile b/src/regress/lib/libc/strlcpy/Makefile
index 921354432b..a6678102ba 100644
--- a/src/regress/lib/libc/strlcpy/Makefile
+++ b/src/regress/lib/libc/strlcpy/Makefile
@@ -1,5 +1,7 @@
1# $OpenBSD: Makefile,v 1.1 2014/12/02 20:23:05 millert Exp $ 1# $OpenBSD: Makefile,v 1.2 2026/05/30 05:07:03 anton Exp $
2 2
3PROG= strlcpytest 3PROG= strlcpytest
4 4
5CFLAGS+=-fno-builtin
6
5.include <bsd.regress.mk> 7.include <bsd.regress.mk>