Closed
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