-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error- unpack requires a buffer of 16 bytes #12
Comments
Can you share the file with me? without the file I am not able to debug and see what the problem is. If it is on VT or any other public repository you can just give me the sha256... You can also DM me on Twitter if you do not want to share the details here |
|
Make sense as I have not covered all filenode types. If the program cannot parse a filenode, it might result in jumping to a location in file that does not exist so read function returns zero bytes instead of 16 for example. regarding other points, I will try to address them in next PR. |
Hi, this sample is raising the same exception. Maybe it could help. |
Thank you for sharing the sample, will check soon |
Trying to execute this on a sample onenote file and it errors out.
self.uintMagic, self.FileNodeListID, self.nFragmentSequence = struct.unpack('<8sII', file.read(16))
struct.error: unpack requires a buffer of 16 bytes
OS- Windows2019 with latest version of Python.
The text was updated successfully, but these errors were encountered: