-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
UBsan: Remove _Py_NO_SANITIZE_UNDEFINED #133157
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Split out from the #111178 monster-issue:
We use the macro
_Py_NO_SANITIZE_UNDEFINEDto 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.
Linked PRs
_Py_NO_SANITIZE_UNDEFINEDin faulthandler #134047_Py_NO_SANITIZE_UNDEFINEDinParser/pegen.c#134048_Py_NO_SANITIZE_UNDEFINEDinParser/pegen.c(GH-134048) #135320Parser/pegen.c(GH-134048) #135334_Py_NO_SANITIZE_UNDEFINEDinpyexpat#134050_Py_NO_SANITIZE_UNDEFINEDinpyexpat#135346