Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't recurse infinitely.#1794

Merged
plusvic merged 1 commit into
VirusTotal:masterfrom
wxsBSD:fix_1793
Sep 21, 2022
Merged

Don't recurse infinitely.#1794
plusvic merged 1 commit into
VirusTotal:masterfrom
wxsBSD:fix_1793

Conversation

@wxsBSD
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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