Skip to content

Commit

Permalink
Fix traceback due to type mismatch when processing digital signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jgajek committed Sep 8, 2016
1 parent 2cc71d3 commit a06bf17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/processing/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,11 @@ def _get_digital_signers(self):
return retlist

signature = self.pe.write()[address+8:]

# BIO.MemoryBuffer expects an argument of type 'str'
if type(signature) is bytearray:
signature = str(signature)

bio = BIO.MemoryBuffer(signature)

if bio:
Expand Down

0 comments on commit a06bf17

Please sign in to comment.