Skip to content

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

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

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented May 12, 2022

Cherry-pick #58770 to release/5.7.

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
(cherry picked from commit 5d1f635)

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
(cherry picked from commit 5d1f635)
@mikeash mikeash requested a review from a team as a code owner May 12, 2022 15:45
@mikeash
Copy link
Contributor Author

mikeash commented May 12, 2022

@swift-ci please test

@mikeash mikeash merged commit fa6883a into swiftlang:release/5.7 May 13, 2022
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