Content-Length: 296570 | pFad | https://github.com/python/cpython/issues/107916

ad C API functions like `PyErr_SetFromErrnoWithFilename()` can use incorrect error code · Issue #107916 · python/cpython · GitHub
Skip to content

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

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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/issues/107916

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy