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

Handle Empty File Exception in FLOSS Execution #846

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

Arker123
Copy link
Collaborator

This PR addresses the issue where running FLOSS on an empty file resulted in an exception (ValueError: cannot mmap an empty file).

Fixes: #788

floss/main.py Outdated Show resolved Hide resolved
floss/utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small tweak, then ready to merge

floss/utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@williballenthin williballenthin merged commit 79809d2 into mandiant:master Aug 1, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError: cannot mmap an empty file
2 participants