Skip to content

Commit

Permalink
[BUGFIX] Skip lines not starting from the offset (Issue hasherezade#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jul 17, 2020
1 parent 57fa8c0 commit deccd1f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ifl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""
CC-BY: hasherezade, run via IDA Pro >= 7.0
"""
__VERSION__ = '1.3.4'
__VERSION__ = '1.3.5'
__AUTHOR__ = 'hasherezade'

PLUGIN_NAME = "IFL - Interactive Functions List"
Expand Down Expand Up @@ -859,7 +859,12 @@ def _loadFunctionsNames(self, file_name, ext):
fn = line.split(delim2) # try old delimiter
if len(fn) < 2:
continue
start = int(fn[0].strip(), 16)
start = 0
try:
start = int(fn[0].strip(), 16)
except ValueError:
# this line doesn't start from an offset, so skip it
continue
func_name = fn[1].strip()
if start < idaapi.get_imagebase(): # it is RVA
start = rva_to_va(start) # convert to VA
Expand Down

0 comments on commit deccd1f

Please sign in to comment.