[llvm] [ASan][JSON] Unpoison memory before its reuse (PR #79065)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 10:47:58 PST 2024
================
@@ -482,6 +482,13 @@ class Value {
friend class Object;
template <typename T, typename... U> void create(U &&... V) {
+#if defined(LLVM_ADDRESS_SANITIZER_BUILD)
+ // Unpoisoning to prevent overwriting poisoned object (e.g., annotated short
+ // string). Objects that have had their memory poisoned may cause an ASan
----------------
vitalybuka wrote:
LGTM
https://github.com/llvm/llvm-project/pull/79065
More information about the llvm-commits
mailing list