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

fix: Allow parsing modules that have no symbols #102

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Mar 2, 2021

The expected CV Signature of a ModuleInfo seems to be a part of the
symbols, meaning that we shouldn’t read it when the symbols_size is 0.

Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

This actually means that the UnimplementedFeature error is in the wrong spot, and the check should be moved into fn symbols entirely. Each of the methods (symbols, lines) already returns Result, so it's best if we're graceful in parsing the entire module.

The expected CV Signature of a ModuleInfo seems to be a part of the
symbols, meaning that we shouldn’t read it when the symbols_size is 0.
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Thanks!

src/modi/mod.rs Outdated Show resolved Hide resolved
@jan-auer jan-auer merged commit af977cf into getsentry:master Mar 2, 2021
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.

2 participants