Browse Source

Squash last mypy error

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

+ 1 - 2
src/smgdc/vtable.py

@@ -102,8 +102,7 @@ def get_vtables_from_address(
     for n, addr in enumerate(addr_range):
         # get symbols that map to that address
         deref = bin.angr.loader.fast_memory_load_pointer(addr)
-        # assert deref
-        fnsyms = set(vtda.syms_by_addr.get(deref) or set())
+        fnsyms = set(vtda.syms_by_addr.get(deref) or set()) if deref else set()
         if not fnsyms:
             # vtable boundary
             table_index += 1