Skip to content

fix: use mktemp to prevent /tmp race condition#4

Closed
Jah-yee wants to merge 1 commit intoythx-101:masterfrom
Jah-yee:main
Closed

fix: use mktemp to prevent /tmp race condition#4
Jah-yee wants to merge 1 commit intoythx-101:masterfrom
Jah-yee:main

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Mar 13, 2026

Summary

  • Use mktemp to create unique temp file instead of hardcoded path
  • Prevents potential race condition if another process creates /tmp/ask-search-wrapper
  • Follows security best practices for temporary file handling

Security Note

This fix addresses a potential TOCTOU (time-of-check to time-of-use) race condition in the install script.

- Use mktemp to create unique temp file instead of hardcoded path
- Prevents potential race condition if another process creates /tmp/ask-search-wrapper
- Follows security best practices for temporary file handling
@ythx-101 ythx-101 closed this Mar 14, 2026
@ythx-101
Copy link
Copy Markdown
Owner

Duplicate of #3, same fix. Thanks for the contribution! 🦞

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.

3 participants