Skip to content

[Reflection] Gracefully handle reflection sections with bad sizes. #58770

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

Merged
merged 1 commit into from
May 12, 2022

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented May 9, 2022

When a reflection section has a size that only fits a partial record, we detect it, log an error, and abort. However, things like Remote Mirror need to be robust to bad data, so instead handle this by terminating iteration at the last full record.

rdar://91954103

When a reflection section has a size that only fits a partial record, we detect it, log an error, and abort. However, things like Remote Mirror need to be robust to bad data, so instead handle this by terminating iteration at the last full record.
@mikeash mikeash requested review from tbkka and al45tair May 9, 2022 20:06
@mikeash
Copy link
Contributor Author

mikeash commented May 11, 2022

@swift-ci please test

Copy link
Contributor

@al45tair al45tair left a comment

Choose a reason for hiding this comment

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

LGTM

@mikeash mikeash merged commit 49148e6 into main May 12, 2022
@mikeash mikeash deleted the weird-reflection-section-size-handling branch May 12, 2022 15:39
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