Files
clang-p2996/lldb/test/API/functionalities/ptrauth_diagnostics/brkC47x_code/brkC47x.c
Vedant Kumar 66902a32c8 [StopInfoMachException] Summarize arm64e BLRAx/LDRAx auth failures
Upstream lldb support for summarizing BLRAx and LDRAx auth failures.

rdar://41615322

Differential Revision: https://reviews.llvm.org/D102428
2021-09-14 13:31:52 -07:00

18 lines
459 B
C

void foo() {}
int main() {
//% self.filecheck("c", "brkC47x.c")
// CHECK: stop reason = EXC_BAD_ACCESS
// CHECK-NEXT: Note: Possible pointer authentication failure detected.
// CHECK-NEXT: Found value that failed to authenticate at address=0x{{.*}} (brkC47x.c:1:13).
asm volatile (
"mov x16, %[target] \n"
"brk 0xc470 \n"
/* Outputs */ :
/* Inputs */ : [target] "r"(&foo)
/* Clobbers */ : "x16"
);
return 1;
}