[compiler-rt] 7b9d6a2 - [hwasan] Fix typo in the error type.

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 13:25:53 PDT 2019


Author: Evgenii Stepanov
Date: 2019-10-28T13:25:45-07:00
New Revision: 7b9d6a22569c69c230b1584829e3acbdf852b221

URL: https://github.com/llvm/llvm-project/commit/7b9d6a22569c69c230b1584829e3acbdf852b221
DIFF: https://github.com/llvm/llvm-project/commit/7b9d6a22569c69c230b1584829e3acbdf852b221.diff

LOG: [hwasan] Fix typo in the error type.

"alocation-tail-overwritten" -> "allocation-tail-overwritten"

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_report.cpp
    compiler-rt/test/hwasan/TestCases/tail-magic.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index 19cb27554bc6..606139f2e178 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -442,7 +442,7 @@ void ReportTailOverwritten(StackTrace *stack, uptr tagged_addr, uptr orig_size,
   Decorator d;
   uptr untagged_addr = UntagAddr(tagged_addr);
   Printf("%s", d.Error());
-  const char *bug_type = "alocation-tail-overwritten";
+  const char *bug_type = "allocation-tail-overwritten";
   Report("ERROR: %s: %s; heap object [%p,%p) of size %zd\n", SanitizerToolName,
          bug_type, untagged_addr, untagged_addr + orig_size, orig_size);
   Printf("\n%s", d.Default());

diff  --git a/compiler-rt/test/hwasan/TestCases/tail-magic.c b/compiler-rt/test/hwasan/TestCases/tail-magic.c
index be7097fb884c..73f31dbe5c90 100644
--- a/compiler-rt/test/hwasan/TestCases/tail-magic.c
+++ b/compiler-rt/test/hwasan/TestCases/tail-magic.c
@@ -28,7 +28,7 @@ int main(int argc, char **argv) {
   sink = UNTAG(p);
   overwrite_tail();
   free(p);
-// CHECK: ERROR: HWAddressSanitizer: alocation-tail-overwritten; heap object [{{.*}}) of size 20
+// CHECK: ERROR: HWAddressSanitizer: allocation-tail-overwritten; heap object [{{.*}}) of size 20
 // CHECK: in main {{.*}}tail-magic.c:[[@LINE-2]]
 // CHECK: allocated here:
 // CHECK: in main {{.*}}tail-magic.c:[[@LINE-7]]


        


More information about the llvm-commits mailing list