2021-06-22 19:11:13 +00:00
|
|
|
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp.orig
|
|
|
|
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
|
2021-05-15 23:58:09 +00:00
|
|
|
@@ -1799,7 +1799,7 @@
|
|
|
|
|
|
|
|
static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
|
|
|
|
static const u32 kEsrMagic = 0x45535201;
|
|
|
|
- u8 *aux = ucontext->uc_mcontext.__reserved;
|
|
|
|
+ u8 *aux = reinterpret_cast<u8 *>(ucontext->uc_mcontext.__reserved);
|
|
|
|
while (true) {
|
|
|
|
_aarch64_ctx *ctx = (_aarch64_ctx *)aux;
|
|
|
|
if (ctx->size == 0) break;
|