From b0cf744093fe0f11d353aa0f335a1d15714567bb Mon Sep 17 00:00:00 2001 From: PinkiePieStyle Date: Mon, 12 Feb 2024 12:42:51 +0100 Subject: [PATCH] Update DwarfApi.ts TempFix: https://github.com/iGio90/Dwarf/issues/107 --- src/DwarfApi.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DwarfApi.ts b/src/DwarfApi.ts index 9b2005f..24f9897 100644 --- a/src/DwarfApi.ts +++ b/src/DwarfApi.ts @@ -903,6 +903,8 @@ export class DwarfApi { * @param p: pointer */ public getAddressTs = (p): [number, any] => { + if(!isString(p) && !isNumber(p)) return [-1, p]; + const _ptr = ptr(p); const _range = Process.findRangeByAddress(_ptr); if (isDefined(_range)) {