From 03202cd9bb15873f4a5b640bbb11f1db8a8f3b57 Mon Sep 17 00:00:00 2001 From: Jürgen Löhel Date: Mon, 14 Jun 2021 18:09:38 -0500 Subject: [PATCH] Fixes OleID constructor --- oletools/oleid.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/oletools/oleid.py b/oletools/oleid.py index bd785b2..0221304 100644 --- a/oletools/oleid.py +++ b/oletools/oleid.py @@ -235,6 +235,8 @@ class OleID(object): self.file_on_disk = True # useful for some check that don't work in memory with open(filename, 'rb') as f: self.data = f.read() + else: + self.data = data self.data_bytesio = io.BytesIO(self.data) if isinstance(filename, olefile.OleFileIO): self.ole = filename -- libgit2 0.21.4