Skip to content

C API functions like PyErr_SetFromErrnoWithFilename() can use incorrect error code #107916

Closed

Description

@serhiy-storchaka

Calling PyUnicode_DecodeFSDefault() in C API functions PyErr_SetFromErrnoWithFilename(), PyErr_SetExcFromWindowsErrWithFilename() and PyErr_SetFromWindowsErrWithFilename() can modify the value of errno or the result of GetLastError() which are used in these functions.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    on Aug 13, 2023
  2. added 3 commits that reference this issue on Aug 14, 2023
  3. added 2 commits that reference this issue on Aug 21, 2023
  4. added a commit that references this issue on Aug 21, 2023
  5. added a commit that references this issue on Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixes3.13only security fixestopic-C-APItype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions