FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.10] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) by miss-islington · Pull Request #97967 · python/cpython · GitHub

/ cpython Public

[3.10] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) - #97967

Merged
ambv merged 1 commit into
python:3.10from
miss-islington:backport-6d0a019-3.10
Oct 6, 2022
Merged

[3.10] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944)#97967
ambv merged 1 commit into
python:3.10from
miss-islington:backport-6d0a019-3.10

Conversation

miss-islington commented Oct 6, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

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 6d0a019)

Co-authored-by: Ned Deily nad@python.org

…3 SDK (pythonGH-97944)

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 6d0a019)

Co-authored-by: Ned Deily <nad@python.org>
bedevere-bot added type-crash A hard crash of the interpreter, possibly with a core dump awaiting review labels Oct 6, 2022
ambv merged commit 3d89ac2 into python:3.10 Oct 6, 2022
miss-islington deleted the backport-6d0a019-3.10 branch October 6, 2022 19:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-crash A hard crash of the interpreter, possibly with a core dump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL