-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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
- gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc #107929
- [3.12] gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929) #108205
- [3.11] gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929) #108206
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error