]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35214: Initial clang MemorySanitizer support (GH-10479)
authorGregory P. Smith <greg@krypto.org>
Mon, 12 Nov 2018 20:07:14 +0000 (12:07 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Nov 2018 20:07:14 +0000 (12:07 -0800)
commit1584a0081500d35dc93ff88e5836df35faf3e3e2
tree986afdd14c17e1678359e28513bd13452152c59f
parenta9655b7f71b8976c369160ef362d0e706cfcd8c9
bpo-35214: Initial clang MemorySanitizer support (GH-10479)

Adds configure flags for msan and ubsan builds to make it easier to enable.
These also encode the detail that address sanitizer and memory sanitizer
should disable pymalloc.

Define MEMORY_SANITIZER when appropriate at build time and adds workarounds
to existing code to mark things as initialized where the sanitizer is otherwise unable to
determine that.  This lets our build succeed under the memory sanitizer.  not all tests
pass without sanitizer failures yet but we're in pretty good shape after this.
Include/Python.h
Misc/NEWS.d/next/Core and Builtins/2018-11-12-11-38-06.bpo-35214.PCHKbX.rst [new file with mode: 0644]
Modules/_ctypes/callproc.c
Modules/_posixsubprocess.c
Modules/faulthandler.c
Python/bootstrap_hash.c
Python/pymath.c
configure
configure.ac