summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh.poyarekar@gmail.com>2018-11-30 15:14:25 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-11-30 15:14:25 (GMT)
commit9eea6eaf23067880f4af3a130e3f67c9812e2f30 (patch)
tree00006cb82b79d809ee2698a944425511a01ef61b /Misc
parent1600f60414e620c4298c15dac803427d8f0a977c (diff)
downloadcpython-9eea6eaf23067880f4af3a130e3f67c9812e2f30.zip
cpython-9eea6eaf23067880f4af3a130e3f67c9812e2f30.tar.gz
cpython-9eea6eaf23067880f4af3a130e3f67c9812e2f30.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst b/Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst
new file mode 100644
index 0000000..8c5a0c9
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2018-08-24-09-48-25.bpo-33015.s21y74.rst
@@ -0,0 +1,3 @@
+Fix an undefined behaviour in the pthread implementation of
+:c:func:`PyThread_start_new_thread`: add a function wrapper to always return
+``NULL``.