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

Use a CShim to avoid an unescapable warning about using mktemp #495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Mar 18, 2024

We work around the security issue with mktemp by checking for the existence of a conflict and retrying if necessary. The comment already in the source code explains why we can't use mkstemp. To avoid this warning appearing for every client of the package, work around it by adding a C shim before we call it.

@parkera
Copy link
Contributor Author

parkera commented Mar 18, 2024

@swift-ci test

@parkera parkera force-pushed the parkera/avoid_mktemp_warning branch from 94cd4a2 to 5aedca6 Compare March 20, 2024 20:29
@parkera
Copy link
Contributor Author

parkera commented Mar 20, 2024

@swift-ci test

1 similar comment
@DougGregor
Copy link
Member

@swift-ci test

@DougGregor
Copy link
Member

Huh, the Linux one picked up yesterday's toolchain

@DougGregor
Copy link
Member

@swift-ci please test Linux

@DougGregor
Copy link
Member

@swift-ci please clean test Linux

@DougGregor
Copy link
Member

@swift-ci please test Linux

@DougGregor
Copy link
Member

Well, we got the new toolchain on Linux, but gold is failing to link on Linux

@parkera
Copy link
Contributor Author

parkera commented Mar 28, 2024

@swift-ci test

@parkera parkera force-pushed the parkera/avoid_mktemp_warning branch from 5aedca6 to bf1138b Compare June 13, 2024 16:37
@parkera
Copy link
Contributor Author

parkera commented Jun 13, 2024

@swift-ci test

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