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

[SR-12433] Strip file paths attached through fatalError from release builds #54872

Open
swift-ci opened this issue Mar 27, 2020 · 1 comment
Open
Labels
improvement standard library Area: Standard library umbrella

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12433
Radar rdar://problem/62200996
Original Reporter blochberger (JIRA User)
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement
Assignee None
Priority Medium

md5: b8d7c3a52d6adb466d38c2981e3d10f7

Issue Description:

As Jeff Johnson described in his blog post, compiling Swift code containing fatalError leads to the absolute file bath being embedded into the binary – even for release builds. This could potentially leak sensitive information about the developer/system that compiled the binary.

I suggest that the absolute file path should be stripped for release builds, similar how it is done for preconditionFailure, with the exception that fatalError should not be optimized in -Ounchecked builds.

@beccadax
Copy link
Contributor

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants