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

PEImage should not permit m_path field mutation #90753

Merged

Conversation

AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT commented Aug 17, 2023

Fixes #90657

Remove cases where PEImage::m_path was mutated.
Create m_pathHash field and remove function.
Remove FEATURE_CASE_SENSITIVE_FILESYSTEM.

@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 8.0.0 milestone Aug 17, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title PEImage should no longer share ref to field PEImage should no longer expose ref to m_path field Aug 17, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title PEImage should no longer expose ref to m_path field PEImage should not expose ref to m_path field Aug 17, 2023
Create m_pathHash field and remove function.
Remove FEATURE_CASE_SENSITIVE_FILESYSTEM.
@AaronRobinsonMSFT AaronRobinsonMSFT force-pushed the peimage_remove_mutable_path branch from 7bff8fa to e0b9c07 Compare August 22, 2023 23:00
@AaronRobinsonMSFT AaronRobinsonMSFT marked this pull request as ready for review August 22, 2023 23:01
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title PEImage should not expose ref to m_path field PEImage should not permit m_path field mutation Aug 23, 2023
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

LGTM otherwise. Thank you!

@AaronRobinsonMSFT
Copy link
Member Author

tvos failure is unrelated.

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 0837c86 into dotnet:main Aug 24, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the peimage_remove_mutable_path branch August 24, 2023 03:20
@AaronRobinsonMSFT
Copy link
Member Author

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/5967333380

@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assembly.Location returns / instead of the actual path intermittently
2 participants