Skip to content

fix: eliminate TOCTOU race in file unlink calls (import of github/spec-kit#3819) - #121

Open
one-kash wants to merge 1 commit into
mainfrom
import/pr-3819
Open

fix: eliminate TOCTOU race in file unlink calls (import of github/spec-kit#3819)#121
one-kash wants to merge 1 commit into
mainfrom
import/pr-3819

Conversation

@one-kash

Copy link
Copy Markdown

Imported from upstream PR github#3819
Original author: @Quratulain-bilal
Original head branch: fix/unbounded-workflow-catalog-read-v2


Replace if path.exists(): path.unlink() with path.unlink(missing_ok=True) in extensions/init.py clear_cache and integrations/_helpers.py to eliminate TOCTOU race conditions.

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