We use the macro _Py_NO_SANITIZE_UNDEFINED to disable the UB sanitizer in some hard-to-fix cases, so that we can get a stable, regression-monitoring checker sooner.
To fully fix UBsan failures, we should get rid of the macro.
At least outside test functions.
Activity
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandl…
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/peg…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…
[3.14] gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Par…
[3.13] pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` i…
[3.13] gh-133157: fix UBSan failures in `Parser/pegen.c` (GH-134048) (#…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` (#…
encukou commented on Jul 1, 2025
Gone. Thank you, @picnixz!
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…