Skip to content
/ cecil Public
forked from jbevain/cecil
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 RVA field alignment #55

Merged
merged 2 commits into from
Dec 27, 2022
Merged

Fix RVA field alignment #55

merged 2 commits into from
Dec 27, 2022

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Dec 21, 2022

Fixes dotnet/runtime#79477, specifically, the problem described in dotnet/runtime#79477 (comment).

This ensures that section starts are aligned by adjusting the previous Range's length to ensure the computed start of a new Range meets the alignment requirements. It was done this way rather than just computing an aligned start for the new Range, because the TextMap assumes that the Ranges are contiguous - see for example GetNextRVA.

@sbomer sbomer requested a review from vitek-karas December 21, 2022 22:36
@marek-safar
Copy link

Please upstream the change

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.

RuntimeHelpers.CreateSpan support is failing in some circumstances
2 participants