Lack of error handling in posix.stat
implementation leads to crash on interrupt
#102890
Labels
extension-modules
C modules in the Modules dir
type-crash
A hard crash of the interpreter, possibly with a core dump
Uh oh!
There was an error while loading. Please reload this page.
_pystat_fromstructstat
function doesn't check that calls to_pystat_l128_from_l64_l64
orfill_time
didn't fail and/or exception wasn't set on currenttstate
, so subsequent calls tofill_time
can lead to crash. I can't find less complicated reproducer yet, since it may require some exotic and perhaps nonexistent data to be passed toposix.stat
.Reproduced on current main (76350e8), platform is linux (x86_64).
Output:
I'll submit a PR with possible fix.
Linked PRs
The text was updated successfully, but these errors were encountered: