Skip to content

Commit

Permalink
Make sure std files are not None before assigning peer (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilmer authored Jan 30, 2020
1 parent 5b2e159 commit 2b52544
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions manticore/platforms/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,12 @@ def __setstate__(self, state):
else:
self.files.append(file_or_buffer)

self.files[0].peer = self.output
self.files[1].peer = self.output
self.files[2].peer = self.output
if self.files[0]:
self.files[0].peer = self.output
if self.files[1]:
self.files[1].peer = self.output
if self.files[2]:
self.files[2].peer = self.output
self._getdents_c = state["_getdents_c"]
self._closed_files = state["closed_files"]
self.input.peer = self.files[0]
Expand Down

0 comments on commit 2b52544

Please sign in to comment.