]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 Nov 2018 15:32:12 +0000 (07:32 -0800)
committerGitHub <noreply@github.com>
Fri, 30 Nov 2018 15:32:12 +0000 (07:32 -0800)
commitb1355352d14a0a67107aba7ec6f233336f17716a
treec34317cf7a903b640fc1ef3b36612f28a1e91f79
parent365f21c2d3756a6768c5b0d479aaf5c2a568b80b
bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008)

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)

Co-authored-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst [new file with mode: 0644]
Python/thread_pthread.h