You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
oid = oletools.oleid.OleID(filename=self.filename, data=self.filedata)
File "/opt/hostedtoolcache/Python/3.6.13/x64/lib/python3.6/site-packages/oletools/oleid.py", line 238, in __init__
self.data_bytesio = io.BytesIO(self.data)
AttributeError: 'OleID' object has no attribute 'data'
self.file_on_disk=True# useful for some check that don't work in memory
withopen(filename, 'rb') asf:
self.data=f.read()
self.data_bytesio=io.BytesIO(self.data)
Fix:
ifdataisNone:
self.file_on_disk=True# useful for some check that don't work in memory withopen(filename, 'rb') asf:
self.data=f.read()
else:
self.data=dataself.data_bytesio=io.BytesIO(self.data)
The text was updated successfully, but these errors were encountered:
jloehel
added a commit
to jloehel/oletools
that referenced
this issue
Jun 14, 2021
Error:
Code:
oletools/oletools/oleid.py
Lines 234 to 238 in 75c0696
Fix:
The text was updated successfully, but these errors were encountered: