From a591bd222b2e0356b8132b515422fe480b87322b Mon Sep 17 00:00:00 2001 From: Amy Huang Date: Fri, 13 Jun 2025 15:09:57 -0700 Subject: [PATCH] Turn LIBC_COPT_STRING_UNSAFE_WIDE_READ on by default (#144163) Configure strlen to use unsafe implementation because it is faster. Because this is undefined behavior it could cause sanitizers to fail. --- libc/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/config/config.json b/libc/config/config.json index d53b2936edb0..0354b16997cd 100644 --- a/libc/config/config.json +++ b/libc/config/config.json @@ -59,7 +59,7 @@ }, "string": { "LIBC_CONF_STRING_UNSAFE_WIDE_READ": { - "value": false, + "value": true, "doc": "Read more than a byte at a time to perform byte-string operations like strlen." }, "LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING": {