Skip to content
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

OleFileIO.get_metadata() hangs when parsing some corrupt ole files #170

Open
crazyyao0 opened this issue Nov 27, 2024 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@crazyyao0
Copy link

Describe the bug
OleFileIO.get_metadata() hangs when parsing some corrupt ole files

File or Malware sample to reproduce the bug
Sample code:

import olefile
ole = olefile.OleFileIO('fc1fe4c124cc42eda492d2714bced597')
ole.get_metadata()

two sample files
samples.zip

How To Reproduce the bug
You can easily reproduce it with the sample code

Expected behavior
It can either return with partial information or raise an exception.

Console output / Screenshots
debug.log

Version information:

  • OS: Windows/Linux/Mac/Other
  • OS version: x.xx - 32/64 bits
  • Python version: 2.7/3.6 - 32/64 bits
  • olefile version: 0.47

Additional context
image
For some reason the count is a very big number. But _parse_property_basic() always return zero size. We need to by pass such loop.

Add any other context about the problem here.

@decalage2 decalage2 self-assigned this Nov 27, 2024
@decalage2 decalage2 added the bug label Nov 27, 2024
@decalage2 decalage2 added this to the olefile 0.47 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants