From 2f7c13cbef1cf359824cd4d09d7c02cb052b735b Mon Sep 17 00:00:00 2001 From: Francesco Tamagni Date: Mon, 8 Apr 2024 16:53:15 +0200 Subject: [PATCH] Fix was_signed check --- lib/payload/unwind-sitter-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/payload/unwind-sitter-glue.c b/lib/payload/unwind-sitter-glue.c index 035fdb801..45f067adb 100644 --- a/lib/payload/unwind-sitter-glue.c +++ b/lib/payload/unwind-sitter-glue.c @@ -265,7 +265,7 @@ frida_unwind_cursor_set_info_replacement (gpointer self, int is_return_address) #if __has_feature (ptrauth_calls) stored_pc = gum_strip_code_address (stored_pc); #elif defined (HAVE_ARM64) - was_signed = (stored_pc & HIGHEST_NIBBLE) != 0; + was_signed = (stored_pc & ~STRIP_MASK ) != 0ULL; if (was_signed) stored_pc &= STRIP_MASK; #endif