Skip to content

[IRGen] Prevent overflow in RecordField with large explosions #64828

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
Apr 7, 2023

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Mar 31, 2023

rdar://99415586

Exploding very large types could cause an overflow, which in turn caused a crash later in IRGen. Fixed by increasing width of the variables in question from 16 to 32 bit and adding an overflow check.

rdar://99415586

Exploding very large types could cause an overflow, which in turn caused a crash later in IRGen.
Fixed by increasing width of the variables in question from 16 to 32 bit and adding an overflow check.
@drexin
Copy link
Contributor Author

drexin commented Mar 31, 2023

@swift-ci smoke test

@drexin
Copy link
Contributor Author

drexin commented Apr 1, 2023

@swift-ci smoke test macos

1 similar comment
@drexin
Copy link
Contributor Author

drexin commented Apr 1, 2023

@swift-ci smoke test macos

@drexin drexin requested a review from aschwaighofer April 3, 2023 16:38
@xedin xedin removed their request for review April 3, 2023 23:18
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