]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandler` (#134047)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 18 May 2025 08:16:10 +0000 (10:16 +0200)
committerGitHub <noreply@github.com>
Sun, 18 May 2025 08:16:10 +0000 (10:16 +0200)
commit0a160bf14c4848f50539e52e2de486c641d122a2
treefacc4d6de43171cc317a12bea9168bcf07054dad
parent22e4a40d9089dde2f1578c4b320f27b20e2e125b
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandler` (#134047)

In `faulthandler_sigfpe()`, instead of using 1/0 arithmetic, we explicitly raise SIGFPE.
We also remove `faulthandler._read_null()` since reading from NULL is an undefined
behavior and `faulthandler` should not check for low-level C undefined behaviors.
Lib/test/test_faulthandler.py
Modules/faulthandler.c