Skip to content

mailbox._create_carefully has a possible toctou error #143010

Closed

Description

@AZero13

Bug report

Bug description:

We should just reuse the fd and not double close.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

  1. added
    type-bug
    on Dec 20, 2025
  2. added 3 commits that reference this issue on Dec 20, 2025
  3. added
    stdlib
    pending
    on Dec 20, 2025
  4. changed the title [-]_create_carefully has possible toctou error[/-] [+]`mailbox._create_carefully` has a possible toctou error[/+] on Dec 20, 2025
  5. added a commit that references this issue on Dec 22, 2025
  6. added 2 commits that reference this issue on Dec 22, 2025
  7. added 2 commits that reference this issue on Dec 22, 2025
  8. bitdancer commented on Dec 22, 2025

    @bitdancer
    Member

    Thanks, AZero13.

  9. removed
    pending
    on Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibtopic-emailtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions