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

Don't recurse infinitely. #1794

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Don't recurse infinitely. #1794

merged 1 commit into from
Sep 21, 2022

Conversation

wxsBSD
Copy link
Collaborator

@wxsBSD wxsBSD commented Sep 20, 2022

Fix infinite recursion when parsing a malformed binary, discovered by clusterfuzz.

Fixes #1793.

Fix infinite recursion when parsing a malformed binary, discovered by
clusterfuzz.

Fixes VirusTotal#1793.
@wxsBSD
Copy link
Collaborator Author

wxsBSD commented Sep 20, 2022

I have no idea if this is the right thing to do here or not. It is probably best to have @HoundThe take a look as he knows these structures the best and originally wrote this code.

Copy link
Contributor

@HoundThe HoundThe left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this! I don't think there is a better option than keeping track of recursion depth like this. LGTM

@plusvic plusvic merged commit ba78a72 into VirusTotal:master Sep 21, 2022
@wxsBSD wxsBSD deleted the fix_1793 branch September 23, 2022 19:32
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.

Stack overflow when parsing corrupted .NET files.
3 participants