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

[LTO] Fix a use-after-free in legacy LTO C APIs (#107896) #9235

Merged

Conversation

cachemeifyoucan
Copy link

Fix a bug that lto_runtime_lib_symbols_list is returning the address of a local variable that will be freed when getting out of scope. This is a regression from llvm#98512 that rewrites the runtime libcall function lists into a SmallVector.

rdar://135559037
(cherry picked from commit 66e9078)

Fix a bug that `lto_runtime_lib_symbols_list` is returning the address
of a local variable that will be freed when getting out of scope. This
is a regression from llvm#98512 that rewrites the runtime libcall function
lists into a SmallVector.

rdar://135559037
(cherry picked from commit 66e9078)
@cachemeifyoucan cachemeifyoucan merged commit c16f367 into swiftlang:stable/20240723 Sep 9, 2024
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.

1 participant