Skip to content

Commit

Permalink
Merge pull request brad-sp#280 from jgajek/master
Browse files Browse the repository at this point in the history
Fix traceback due to type mismatch when processing digital signature
  • Loading branch information
spender-sandbox authored Sep 8, 2016
2 parents 2cc71d3 + a06bf17 commit df7cc7c
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 df7cc7c

Please sign in to comment.