[libc-commits] [libc] a591bd2 - Turn LIBC_COPT_STRING_UNSAFE_WIDE_READ on by default (#144163)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 13 15:10:00 PDT 2025
Author: Amy Huang
Date: 2025-06-13T15:09:57-07:00
New Revision: a591bd222b2e0356b8132b515422fe480b87322b
URL: https://github.com/llvm/llvm-project/commit/a591bd222b2e0356b8132b515422fe480b87322b
DIFF: https://github.com/llvm/llvm-project/commit/a591bd222b2e0356b8132b515422fe480b87322b.diff
LOG: 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.
Added:
Modified:
libc/config/config.json
Removed:
################################################################################
diff --git a/libc/config/config.json b/libc/config/config.json
index d53b2936edb07..0354b16997cdd 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": {
More information about the libc-commits
mailing list