]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan (GH-31675) ...
authorVictor Stinner <vstinner@python.org>
Fri, 4 Mar 2022 00:31:54 +0000 (01:31 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 00:31:54 +0000 (01:31 +0100)
commit6a14330318c9c7aedf3e9841c3dfea337064d8e6
tree1e3cc7ba7fc8d25a04e50f8982f14ae94b94c7a6
parent09819863a3fb7092ca5cbdfcb722882ebbac806b
bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan (GH-31675) (GH-31676)

* bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662)

Disable undefined behavior sanitizer (UBSAN) on
faulthandler_sigfpe().

(cherry picked from commit 4173d677a1d7c72bb32d292fbff1b4cf073d615c)

* bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672)

Disable undefined behavior sanitizer (UBSan) on
faulthandler._read_null().

(cherry picked from commit 65b92ccdec2ee4a99e54aaf7ae2d9bbc2ebfe549)

* bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673)

If Python is built with UBSan, test_hashlib skips tests on the _sha3
extension which currently has undefined behaviors.

This change allows to run test_hashlib to check for new UBSan regression,
but the known _sha3 undefined behavior must be fixed.

(cherry picked from commit 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b)

* bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674)

If Python is built with UBSan, test_ctypes now skips test_shorts().
This change allows to run test_ctypes to check for new UBSan regression,
but the known test_shorts() undefined behavior must be fixed.

(cherry picked from commit ad1b04451d3aca2c6fa6dbe2891676a4e0baac49)
(cherry picked from commit 7b5b429adab4fe0fe81858fe3831f06adc2e2141)
Lib/ctypes/test/test_bitfields.py
Lib/test/test_hashlib.py
Misc/NEWS.d/next/Tests/2022-03-03-17-36-24.bpo-46913.vxETIE.rst [new file with mode: 0644]
Modules/faulthandler.c