]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10822)
authorVictor Stinner <vstinner@redhat.com>
Fri, 30 Nov 2018 16:04:46 +0000 (17:04 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Nov 2018 16:04:46 +0000 (17:04 +0100)
commit03b1200dfd03061e9ad0bff8199967bd80b9b900
tree1555701926d9eb1beba824c8f8ff71c4b276229b
parentaf7e81f71858519de8d2bafcb38fce8cca86aa0a
bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) (GH-10822)

Fix an undefined behaviour in the pthread implementation of
PyThread_start_new_thread(): add a function wrapper to always return
NULL.

Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.

(cherry picked from commit 9eea6eaf23067880f4af3a130e3f67c9812e2f30)
Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst [new file with mode: 0644]
Python/thread_pthread.h