Skip to content

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

Closed
@serhiy-storchaka

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

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixes3.13bugs and 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