Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143010: Prevent a TOCTOU issue by only calling open once#143011

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
AZero13 wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromAZero13:stat

Conversation

@AZero13
Copy link
Contributor

@AZero13AZero13 commentedDec 20, 2025
edited by bedevere-appbot
Loading

We can literally just use open(path, 'xb+') for _create_carefully

@AZero13AZero13 requested a review froma team as acode ownerDecember 20, 2025 06:49
@AZero13AZero13 changed the titlegh-143010: Prevent a TOCTOU issue by reusing the fdgh-143010: Prevent a TOCTOU issue by only calling open onceDec 20, 2025
… TOCTOU issue by only calling open onceWe can literally just use open(path, 'xb+') for _create_carefully.
Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

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

Can you please start with a failing test that can show us what's wrong?

StanFromIreland reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@sobolevnsobolevnsobolevn left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@AZero13@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp