Skip to content

Fix usage of uninitialized memory in swift_addNewDSOImage. #26275

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 2 commits into from
Aug 13, 2019

Conversation

pschuh
Copy link
Contributor

@pschuh pschuh commented Jul 22, 2019

This should address https://bugs.swift.org/browse/SR-6848.

Couldn't transform the unsafeGet to get() because it would produce an infinite loop due to the fact that this gets called in the constructor. All non-reentrant versions will continue to use the safe version.

@pschuh
Copy link
Contributor Author

pschuh commented Jul 22, 2019

@swift-ci please test

@pschuh pschuh requested a review from DougGregor July 22, 2019 22:04
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 6eea21cd3265436f70fc75806c8666e24ef7ed22

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6eea21cd3265436f70fc75806c8666e24ef7ed22

This should address https://bugs.swift.org/browse/SR-6848.

Couldn't transform the unsafeGet to get because it would produce an
infinite loop.
@pschuh
Copy link
Contributor Author

pschuh commented Jul 22, 2019

@swift-ci please test linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 6eea21cd3265436f70fc75806c8666e24ef7ed22

@pschuh
Copy link
Contributor Author

pschuh commented Jul 23, 2019

@swift-ci please test macos

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6eea21cd3265436f70fc75806c8666e24ef7ed22

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This looks fine to me, thanks!

@DougGregor
Copy link
Member

@mikeash this make sense to you as well?

@DougGregor
Copy link
Member

@pschuh sorry for the delay. I got buried in mentions while on vacation and am digging out

@mikeash
Copy link
Contributor

mikeash commented Aug 13, 2019

Looks good to me!

@pschuh
Copy link
Contributor Author

pschuh commented Aug 13, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ca33b18

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ca33b18

@pschuh pschuh merged commit 37c6414 into swiftlang:master Aug 13, 2019
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.

4 participants