From 6c38b251cfe6b281b21ec3c1376fb69dd71ec9ae Mon Sep 17 00:00:00 2001 From: William Kent Date: Fri, 13 May 2022 16:33:31 -0400 Subject: [PATCH] [DBGHELP] Fix rsym runtime crash on ARM64 host CORE-17518 --- dll/win32/dbghelp/symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/dbghelp/symbol.c b/dll/win32/dbghelp/symbol.c index f16a1e2cf8e..2265add7fc8 100644 --- a/dll/win32/dbghelp/symbol.c +++ b/dll/win32/dbghelp/symbol.c @@ -109,7 +109,7 @@ DWORD symt_ptr2index(struct module* module, const struct symt* sym) struct symt* symt_index2ptr(struct module* module, DWORD id) { -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(__arm64__) if (!id-- || id >= vector_length(&module->vsymt)) return NULL; return *(struct symt**)vector_at(&module->vsymt, id); #else