[compiler-rt] d4d007b - [asan][NFC] Fix comments in asan_poisoning.cpp (#212449)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 10:52:23 PDT 2026
Author: Jinseok Kim
Date: 2026-07-28T17:52:17Z
New Revision: d4d007b581bef93d6b7cee4bf9d621804826a9d6
URL: https://github.com/llvm/llvm-project/commit/d4d007b581bef93d6b7cee4bf9d621804826a9d6
DIFF: https://github.com/llvm/llvm-project/commit/d4d007b581bef93d6b7cee4bf9d621804826a9d6.diff
LOG: [asan][NFC] Fix comments in asan_poisoning.cpp (#212449)
Remove duplicated wording and fix typos in comments.
Signed-off-by: Jinseok Kim <always.starving0 at gmail.com>
Added:
Modified:
compiler-rt/lib/asan/asan_poisoning.cpp
Removed:
################################################################################
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));
More information about the llvm-commits
mailing list