Skip to content

Commit

Permalink
Added support for the 'location' signature keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Aug 31, 2017
1 parent bb03024 commit 8cc9352
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/binwalk/modules/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def validate(self, r):
if r.jump and (r.jump + r.offset) > r.file.size:
r.valid = False

if hasattr(r, "location") and (r.location != r.offset):
r.valid = False

if r.valid:
# Don't keep displaying signatures that repeat a bunch of times
# (e.g., JFFS2 nodes)
Expand Down

0 comments on commit 8cc9352

Please sign in to comment.