From a06bf174fbd16fb0fb35efec3343890a97d8395a Mon Sep 17 00:00:00 2001 From: Jacob Gajek Date: Thu, 8 Sep 2016 13:21:22 -0400 Subject: [PATCH] Fix traceback due to type mismatch when processing digital signature --- modules/processing/static.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/processing/static.py b/modules/processing/static.py index 0ea0042c8..9d3cf1df2 100644 --- a/modules/processing/static.py +++ b/modules/processing/static.py @@ -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: