Skip to content

Commit

Permalink
Merge pull request #380 from doomedraven/patch-1
Browse files Browse the repository at this point in the history
fix is_ordinal IndexError
  • Loading branch information
williballenthin committed Dec 8, 2020
2 parents 9ce0c94 + 64c71d8 commit 177c900
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion capa/features/extractors/helpers.py
Expand Up @@ -42,7 +42,9 @@ def is_ordinal(symbol):
"""
is the given symbol an ordinal that is prefixed by "#"?
"""
return symbol[0] == "#"
if symbol:
return symbol[0] == "#"
return False


def generate_symbols(dll, symbol):
Expand Down

0 comments on commit 177c900

Please sign in to comment.