[compiler-rt] 0673fb6 - [hwasan] Add missing printf parameter in __hwasan_handle_longjmp (#82559)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 09:53:59 PST 2024
Author: Thurston Dang
Date: 2024-02-23T09:53:55-08:00
New Revision: 0673fb6e773b0a37802208be4f666cef1f6b3470
URL: https://github.com/llvm/llvm-project/commit/0673fb6e773b0a37802208be4f666cef1f6b3470
DIFF: https://github.com/llvm/llvm-project/commit/0673fb6e773b0a37802208be4f666cef1f6b3470.diff
LOG: [hwasan] Add missing printf parameter in __hwasan_handle_longjmp (#82559)
The diagnostic message had four format specifiers but only three
parameters. This patch adds what I assume to be the missing
parameter.
Added:
Modified:
compiler-rt/lib/hwasan/hwasan.cpp
Removed:
################################################################################
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);
More information about the llvm-commits
mailing list