diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-21 07:55:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 07:55:06 (GMT) |
commit | d4cea794a7b9b745817d2bd982d35412aef04710 (patch) | |
tree | 040c625f4d2bd4f4a332227ecf7982b539242b51 /Python/Python-ast.c | |
parent | 115c49ad5a5ccfb628fef3ae06a566f7a0197f97 (diff) | |
download | cpython-d4cea794a7b9b745817d2bd982d35412aef04710.zip cpython-d4cea794a7b9b745817d2bd982d35412aef04710.tar.gz cpython-d4cea794a7b9b745817d2bd982d35412aef04710.tar.bz2 |
gh-109613: _pystat_fromstructstat() checks for exceptions (#109618)
Fix os.stat() and os.DirEntry.stat(): check for exceptions.
Previously, on Python built in debug mode, these functions could
trigger a fatal Python error (and abort the process) when a function
succeeded with an exception set.
_pystat_fromstructstat() now exits immediately if an exception is
raised, rather only checking for exceptions at the end. It fix
following fatal error in fill_time():
Fatal Python error: _Py_CheckSlotResult:
Slot * of type int succeeded with an exception set
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions