浏览代码

Use proper access of parent vtable

nosoop 10 月之前
父节点
当前提交
53713681c7
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/smgdc/angr/vtable_disamb.py

+ 2 - 6
src/smgdc/angr/vtable_disamb.py

@@ -346,12 +346,8 @@ class VtableDisambiguator(angr.Analysis):
                     # HACK: some virtual destructors got optimized out and are represented by nullptrs
                     for parent_vt in self.superclass_map[vt]:
                         # HACK: in that case we try to match functions from the parent
-                        vptr = (
-                            self.loader.fast_memory_load_pointer(
-                                parent_vt.rebased_addr + (0x4 * n) + 0x8
-                            )
-                            or 0
-                        )
+                        pvptr_first, *_ = self.get_vfptrs_from_table(parent_vt)
+                        vptr = pvptr_first[n]
                         if vptr:
                             break