mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-18 22:32:28 +01:00
14 lines
600 B
Diff
14 lines
600 B
Diff
Patch-Source: https://github.com/void-linux/void-packages/blob/c907a54de30ad0b19fbf9f37d5b67cabe5c7744d/srcpkgs/llvm12/patches/compiler-rt-aarch64-ucontext.patch
|
|
|
|
--- a/lib/sanitizer_common/sanitizer_linux.cpp
|
|
+++ b/lib/sanitizer_common/sanitizer_linux.cpp
|
|
@@ -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;
|