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

refactor: iterative DFS instead of recursion for Mach-O exports #148

Merged
merged 5 commits into from
Jun 28, 2024

Conversation

latonis
Copy link
Contributor

@latonis latonis commented Jun 27, 2024

As discussed with @plusvic, keeping exports as UTF-8 strings as docs designate, as well as converting from recursion to iteration for the export node parsing.

This also resolves #141

lib/src/modules/macho/parser.rs Outdated Show resolved Hide resolved
lib/src/modules/macho/parser.rs Outdated Show resolved Hide resolved
Also reduces the indentation levels in `parse_export_node`.
`export_node.offset` can be arbitrary because it is read from the file and inserted in the stack without further verification.
@plusvic plusvic merged commit a837b6c into VirusTotal:main Jun 28, 2024
15 checks passed
@latonis latonis deleted the macho-refactor-exports branch June 28, 2024 13:20
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.

Panic while Scanning Directories w/ Macho Module
2 participants