[compiler-rt] [hwasan] Add missing printf parameter in __hwasan_handle_longjmp (PR #82559)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 16:44:13 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Thurston Dang (thurstond)
<details>
<summary>Changes</summary>
The diagnostic message had four format specifiers but only three
parameters. This patch adds what I assume to be the missing
parameter.
---
Full diff: https://github.com/llvm/llvm-project/pull/82559.diff
1 Files Affected:
- (modified) compiler-rt/lib/hwasan/hwasan.cpp (+1-1)
``````````diff
diff --git a/compiler-rt/lib/hwasan/hwasan.cpp b/compiler-rt/lib/hwasan/hwasan.cpp
index 52780becbdb264..ccdc0b4bc21bd3 100644
--- a/compiler-rt/lib/hwasan/hwasan.cpp
+++ b/compiler-rt/lib/hwasan/hwasan.cpp
@@ -692,7 +692,7 @@ void __hwasan_handle_longjmp(const void *sp_dst) {
"WARNING: HWASan is ignoring requested __hwasan_handle_longjmp: "
"stack top: %p; target %p; distance: %p (%zd)\n"
"False positive error reports may follow\n",
- (void *)sp, (void *)dst, dst - sp);
+ (void *)sp, (void *)dst, dst - sp, dst - sp);
return;
}
TagMemory(sp, dst - sp, 0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/82559
More information about the llvm-commits
mailing list