summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-19 14:42:08 (GMT)
committerGitHub <noreply@github.com>2023-09-19 14:42:08 (GMT)
commit0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab (patch)
treec1977e7a938176d816dac6c90371f09cede358ac
parent67d9363372d9b214d9aa1812163866c9804aa55a (diff)
downloadcpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.zip
cpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.tar.gz
cpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.tar.bz2
gh-109496: Skip test_capi.test_decref_freed_object() on ASAN (#109573)
Skip test_decref_freed_object() of test_capi.test_misc if Python is built with ASAN, MSAN or UBSAN sanitizers.
-rw-r--r--Lib/test/test_capi/test_misc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py
index 57edacb..11cb198 100644
--- a/Lib/test/test_capi/test_misc.py
+++ b/Lib/test/test_capi/test_misc.py
@@ -325,6 +325,8 @@ class CAPITest(unittest.TestCase):
@unittest.skipUnless(hasattr(_testcapi, 'decref_freed_object'),
'need _testcapi.decref_freed_object()')
+ @support.skip_if_sanitizer("use after free on purpose",
+ address=True, memory=True, ub=True)
def test_decref_freed_object(self):
code = """
import _testcapi