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

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