Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146600377
D52389.id161559.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
D52389.id161559.diff
View Options
diff --git a/sys/libkern/strlen.c b/sys/libkern/strlen.c
--- a/sys/libkern/strlen.c
+++ b/sys/libkern/strlen.c
@@ -26,9 +26,19 @@
*/
#include <sys/cdefs.h>
+#include <sys/asan.h>
+#include <sys/csan.h>
#include <sys/libkern.h>
#include <sys/limits.h>
+#include <sys/msan.h>
+#if defined(KASAN) || defined(KCSAN) || defined(KMSAN)
+size_t
+(strlen)(const char *str)
+{
+ return SAN_INTERCEPTOR(strlen)(str);
+}
+#else /* !KASAN && !KCSAN && !KMSAN */
/*
* Portable strlen() for 32-bit and 64-bit systems.
*
@@ -119,3 +129,4 @@
/* NOTREACHED */
return (0);
}
+#endif /* KASAN || KCSAN || KMSAN */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 5, 12:06 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29262124
Default Alt Text
D52389.id161559.diff (615 B)
Attached To
Mode
D52389: libkern: implement string functions as wrappers on ASAN/CSAN kernels
Attached
Detach File
Event Timeline
Log In to Comment