[compiler-rt] [asan] Fix comments in asan_poisoning.cpp (PR #212449)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 03:23:12 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Jinseok Kim (JawsKim)

<details>
<summary>Changes</summary>

Remove duplicated wording and fix typos in comments.

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


1 Files Affected:

- (modified) compiler-rt/lib/asan/asan_poisoning.cpp (+3-3) 


``````````diff
diff --git a/compiler-rt/lib/asan/asan_poisoning.cpp b/compiler-rt/lib/asan/asan_poisoning.cpp
index 1567f78e7f04c..8fc07dd558b0a 100644
--- a/compiler-rt/lib/asan/asan_poisoning.cpp
+++ b/compiler-rt/lib/asan/asan_poisoning.cpp
@@ -225,7 +225,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, uptr size) {
     CHECK_LT(beg.offset, end.offset);
     s8 value = beg.value;
     CHECK_EQ(value, end.value);
-    // We unpoison memory bytes up to enbytes up to end.offset if it is not
+    // We unpoison memory bytes up to end.offset if it is not
     // unpoisoned already.
     if (value != 0) {
       *beg.chunk = Max(value, end.offset);
@@ -549,7 +549,7 @@ void __sanitizer_annotate_contiguous_container(const void *beg_p,
 }
 
 // Annotates a double ended contiguous memory area like std::deque's chunk.
-// It allows detecting buggy accesses to allocated but not used begining
+// It allows detecting buggy accesses to allocated but not used beginning
 // or end items of such a container.
 void __sanitizer_annotate_double_ended_contiguous_container(
     const void *storage_beg_p, const void *storage_end_p,
@@ -717,7 +717,7 @@ const void *__sanitizer_double_ended_contiguous_container_find_bad_address(
   uptr beg = reinterpret_cast<uptr>(container_beg_p);
   uptr end = reinterpret_cast<uptr>(container_end_p);
 
-  // The prefix of the firs granule of the container is unpoisoned.
+  // The prefix of the first granule of the container is unpoisoned.
   if (beg != end)
     beg = Max(storage_beg, RoundDownTo(beg, granularity));
 

``````````

</details>


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


More information about the llvm-commits mailing list