[libc-commits] [libc] Revert "Turn LIBC_COPT_STRING_UNSAFE_WIDE_READ on by default" (PR #144167)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 13 15:30:59 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Amy Huang (amykhuang)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->144163 because for some reason I didn't realize there are ASan tests.

---
Full diff: https://github.com/llvm/llvm-project/pull/144167.diff


1 Files Affected:

- (modified) libc/config/config.json (+1-1) 


``````````diff
diff --git a/libc/config/config.json b/libc/config/config.json
index 0354b16997cdd..d53b2936edb07 100644
--- a/libc/config/config.json
+++ b/libc/config/config.json
@@ -59,7 +59,7 @@
   },
   "string": {
     "LIBC_CONF_STRING_UNSAFE_WIDE_READ": {
-      "value": true,
+      "value": false,
       "doc": "Read more than a byte at a time to perform byte-string operations like strlen."
     },
     "LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING": {

``````````

</details>


https://github.com/llvm/llvm-project/pull/144167


More information about the libc-commits mailing list