diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-06 19:14:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 19:14:32 (GMT) |
commit | 77796d058e780083279994dfbfca71caf95d1e7d (patch) | |
tree | 81af9ddf98d8a95a015e6d0c3a2d3f626e138339 /Objects/listsort.txt | |
parent | 358b7a4454daf22b0c3b958da6172bf7f3090be3 (diff) | |
download | cpython-77796d058e780083279994dfbfca71caf95d1e7d.zip cpython-77796d058e780083279994dfbfca71caf95d1e7d.tar.gz cpython-77796d058e780083279994dfbfca71caf95d1e7d.tar.bz2 |
[3.9] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) (#97968)
The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls.
Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a
segfault if cpython is built with the macOS 13 SDK but run on an earlier
version of macOS. Prevent this by adding runtime support for detection of
these system calls ("weaklinking") as is done for other newer syscalls on
macOS.
(cherry picked from commit 6d0a0191a4e5477bd843e62c24d7f3bcad4fd5fc)
Co-authored-by: Ned Deily <nad@python.org>
Diffstat (limited to 'Objects/listsort.txt')
0 files changed, 0 insertions, 0 deletions