mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 18:55:48 +00:00
[hwasan] Fix typo in the error type.
"alocation-tail-overwritten" -> "allocation-tail-overwritten"
This commit is contained in:
parent
f8a92af893
commit
7b9d6a2256
@ -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());
|
||||
|
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user