Skip to content

Commit

Permalink
Fix #14 : Add tell to BinaryReader
Browse files Browse the repository at this point in the history
  • Loading branch information
ElykDeer committed Aug 27, 2022
1 parent 04ec1f0 commit 5f63400
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DWARF Import (v1.1.2)
# DWARF Import (v1.1.3)
Author: **Vector 35 Inc**

_Imports DWARF Info from ELFs_
Expand Down
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def is_valid(bv):
elf = True
elif view.name == "Raw":
raw = True
return raw and elf and ELFFile(BinaryReader(bv.file.raw)).has_dwarf_info()
reader = BinaryReader(bv.file.raw)
reader.tell = lambda: reader.offset
return raw and elf and ELFFile(reader).has_dwarf_info()


PluginCommand.register("DWARF Import\\Load DWARF Symbols", "Load DWARF Symbols from the current file", load_symbols, is_valid)
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"pyelftools==0.27"
]
},
"version": "1.1.2",
"version": "1.1.3",
"author": "Vector 35 Inc",
"minimumbinaryninjaversion": 3000
}

0 comments on commit 5f63400

Please sign in to comment.