Skip to content

Conversation

@eeckstein
Copy link
Contributor

The pass to decide which functions should get stack protection was added in #60933, but was disabled by default.

This PR enables stack protection by default, but not the possibility to move arguments into temporaries - to keep the risk low. Moving to temporaries can be enabled with the new frontend option -enable-move-inout-stack-protector.

rdar://93677524

The pass to decide which functions should get stack protection was added in swiftlang#60933, but was disabled by default.

This PR enables stack protection by default, but not the possibility to move arguments into temporaries - to keep the risk low.
Moving to temporaries can be enabled with the new frontend option `-enable-move-inout-stack-protector`.

rdar://93677524
@eeckstein
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

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

LGTM!

@eeckstein eeckstein merged commit ddc69e7 into swiftlang:main Nov 12, 2022
@eeckstein eeckstein deleted the enable-stack-protection branch November 12, 2022 06:38
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