Skip to content

Commit

Permalink
Fixed bug in cpio plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Sep 1, 2019
1 parent 00dd062 commit 64201ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/binwalk/plugins/cpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def pre_scan(self):
# Be sure to re-set this at the beginning of every scan
self.found_archive = False
self.found_archive_in_file = None
self.consecutive_hits = 0

def new_file(self, f):
# Make sure internal settings don't persist across different files
self.pre_scan()

def _get_file_name(self, description):
name = ''
Expand Down

0 comments on commit 64201ac

Please sign in to comment.