Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148115955
D31045.1785425344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
699 B
Referenced Files
None
Subscribers
None
D31045.1785425344.diff
View Options
diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc
--- a/lib/libc/string/Makefile.inc
+++ b/lib/libc/string/Makefile.inc
@@ -29,6 +29,15 @@
SYM_MAPS+= ${LIBC_SRCTOP}/string/Symbol.map
+.if ${MK_ASAN} != "no"
+# These source files deliberately read out of bounds since they assume that
+# out-of-bounds memory accesses that don't cross pages are always legal.
+# Note: While this is fine on x86, it does break when running with CHERI.
+CFLAGS.strlen.c+= -fno-sanitize=address
+CFLAGS.strchrnul.c+= -fno-sanitize=address
+CFLAGS.memchr.c+= -fno-sanitize=address
+.endif
+
# machine-dependent string sources
.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/string/Makefile.inc"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 30, 3:29 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29314245
Default Alt Text
D31045.1785425344.diff (699 B)
Attached To
Mode
D31045: libc: Disable ASAN for certain string functions
Attached
Detach File
Event Timeline
Log In to Comment