◐ Shell
clean mode source ↗

gh-120754: Ensure _stat_atopen is cleared on fd change by cmaloney · Pull Request #125166 · python/cpython

added 2 commits

October 8, 2024 16:41
Performed an audit of `fileio.c` and `_pyio` and made sure anytime the
fd changes the stat result, if set, is also cleared/changed.

There's one case where it's not cleared, if code would clear it in
__init__, keep the memory allocated and just do another fstat with the
existing memory.

@cmaloney

vstinner

cmaloney

vstinner

vstinner

vstinner

@cmaloney

picnixz pushed a commit to picnixz/cpython that referenced this pull request

Dec 8, 2024
…n#125166)

Performed an audit of `fileio.c` and `_pyio` and made sure anytime the
fd changes the stat result, if set, is also cleared/changed.

There's one case where it's not cleared, if code would clear it in
__init__, keep the memory allocated and just do another fstat with the
existing memory.

ebonnal pushed a commit to ebonnal/cpython that referenced this pull request

Jan 12, 2025
…n#125166)

Performed an audit of `fileio.c` and `_pyio` and made sure anytime the
fd changes the stat result, if set, is also cleared/changed.

There's one case where it's not cleared, if code would clear it in
__init__, keep the memory allocated and just do another fstat with the
existing memory.