mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-03 05:32:24 +00:00
[NFC][hwasan] Move Report classes together (#66682)
This commit is contained in:
parent
d39d86da4a
commit
75fdf2e7b6
@ -623,13 +623,7 @@ InvalidFreeReport::~InvalidFreeReport() {
|
||||
MaybePrintAndroidHelpUrl();
|
||||
ReportErrorSummary(bug_type, stack);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void ReportInvalidFree(StackTrace *stack, uptr tagged_addr) {
|
||||
InvalidFreeReport R(stack, tagged_addr);
|
||||
}
|
||||
|
||||
namespace {
|
||||
class TailOverwrittenReport {
|
||||
public:
|
||||
explicit TailOverwrittenReport(StackTrace *stack, uptr tagged_addr,
|
||||
@ -717,14 +711,7 @@ TailOverwrittenReport::~TailOverwrittenReport() {
|
||||
MaybePrintAndroidHelpUrl();
|
||||
ReportErrorSummary(bug_type, stack);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void ReportTailOverwritten(StackTrace *stack, uptr tagged_addr, uptr orig_size,
|
||||
const u8 *expected) {
|
||||
TailOverwrittenReport R(stack, tagged_addr, orig_size, expected);
|
||||
}
|
||||
|
||||
namespace {
|
||||
class TagMismatchReport {
|
||||
public:
|
||||
explicit TagMismatchReport(StackTrace *stack, uptr tagged_addr,
|
||||
@ -818,6 +805,15 @@ TagMismatchReport::~TagMismatchReport() {
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void ReportInvalidFree(StackTrace *stack, uptr tagged_addr) {
|
||||
InvalidFreeReport R(stack, tagged_addr);
|
||||
}
|
||||
|
||||
void ReportTailOverwritten(StackTrace *stack, uptr tagged_addr, uptr orig_size,
|
||||
const u8 *expected) {
|
||||
TailOverwrittenReport R(stack, tagged_addr, orig_size, expected);
|
||||
}
|
||||
|
||||
void ReportTagMismatch(StackTrace *stack, uptr tagged_addr, uptr access_size,
|
||||
bool is_store, bool fatal, uptr *registers_frame) {
|
||||
TagMismatchReport R(stack, tagged_addr, access_size, is_store, fatal,
|
||||
|
Loading…
x
Reference in New Issue
Block a user