Browse Source

Fix variable redeclaration

nosoop 10 months ago
parent
commit
14d5dfb753
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/smgdc/vtable.py

+ 2 - 2
src/smgdc/vtable.py

@@ -53,8 +53,8 @@ def get_windows_vtables_from(bin: "LinuxBinary", vt: Symbol) -> VTable:
         vt_parent = bin.angr.loader.find_symbol(f"_ZTV{name}")
         if not vt_parent:
             continue
-        vt_first, *_ = get_vtables_from_address(bin, vt_parent)
-        vt_parent_spans.append(len(vt_first))
+        vt_parent_first, *_ = vtda.get_vfptrs_from_table(vt_parent)
+        vt_parent_spans.append(len(vt_parent_first))
 
     vt_first, *vt_others = get_vtables_from_address(bin, vt)
     thunk_fns = set()