From a885617625ab5259b74d0f2185977d4562316636 Mon Sep 17 00:00:00 2001 From: Stephen Eckels Date: Mon, 23 Oct 2023 10:33:06 -0400 Subject: [PATCH] Catch typename decode issues --- IDAPython/goresym_rename.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/IDAPython/goresym_rename.py b/IDAPython/goresym_rename.py index 994edb6..9114841 100644 --- a/IDAPython/goresym_rename.py +++ b/IDAPython/goresym_rename.py @@ -30,8 +30,13 @@ def is_autosync(name, tif): for ord in range(1, idaapi.get_ordinal_qty(None)): t = idaapi.tinfo_t() t.get_numbered_type(None, ord) - typename = t.get_type_name() - if typename.startswith('#'): + + typename = '' + try: + typename = t.get_type_name() + if typename.startswith('#'): + continue + except: continue autosync = is_autosync(typename, t)