]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109496: Skip test_capi.test_decref_freed_object() on ASAN (#109573)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Sep 2023 14:42:08 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 14:42:08 +0000 (14:42 +0000)
Skip test_decref_freed_object() of test_capi.test_misc if Python is
built with ASAN, MSAN or UBSAN sanitizers.

Lib/test/test_capi/test_misc.py

index 57edacbae35634cc3dcd933270a6b24b72f1cee9..11cb1983b0fa207f93ffde98e592b3f7dfc27534 100644 (file)
@@ -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