-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Turn LIBC_COPT_STRING_UNSAFE_WIDE_READ on by default #144163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-libc Author: Amy Huang (amykhuang) ChangesConfigure strlen to use unsafe implementation because it is faster. Because this is undefined behavior it could cause sanitizers to fail. Full diff: https://github.com/llvm/llvm-project/pull/144163.diff 1 Files Affected:
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": {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/147/builds/22940 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/171/builds/23876 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/7331 Here is the relevant piece of the build log for the reference
|
This reverts commit a591bd2.
Reverts #144163 because for some reason I didn't realize there are ASan tests.
…lt" (#144167) Reverts llvm/llvm-project#144163 because for some reason I didn't realize there are ASan tests.
Configure strlen to use unsafe implementation because it is faster. Because this is undefined behavior it could cause sanitizers to fail.
…44167) Reverts llvm#144163 because for some reason I didn't realize there are ASan tests.
Configure strlen to use unsafe implementation because it is faster.
Because this is undefined behavior it could cause sanitizers to fail.