Skip to content

Commit a591bd2

Browse files
authored
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.
1 parent 2c44023 commit a591bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"string": {
6161
"LIBC_CONF_STRING_UNSAFE_WIDE_READ": {
62-
"value": false,
62+
"value": true,
6363
"doc": "Read more than a byte at a time to perform byte-string operations like strlen."
6464
},
6565
"LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING": {

0 commit comments

Comments
 (0)