forked from OSchip/llvm-project
[NFC] [hwasan] move prints closer together.
this makes the code slightly more readable. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D109442
This commit is contained in:
parent
a3870e8ab1
commit
039fd9af45
|
@ -681,11 +681,11 @@ void ReportTagMismatch(StackTrace *stack, uptr tagged_addr, uptr access_size,
|
|||
GetCurrentThread()->stack_allocations());
|
||||
|
||||
Decorator d;
|
||||
Printf("%s", d.Error());
|
||||
uptr untagged_addr = UntagAddr(tagged_addr);
|
||||
// TODO: when possible, try to print heap-use-after-free, etc.
|
||||
const char *bug_type = "tag-mismatch";
|
||||
uptr pc = GetTopPc(stack);
|
||||
Printf("%s", d.Error());
|
||||
Report("ERROR: %s: %s on address %p at pc %p\n", SanitizerToolName, bug_type,
|
||||
untagged_addr, pc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue