]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: fix UBSan failures in `Modules/_decimal` (GH-129074)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 27 Jan 2025 14:15:42 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 14:15:42 +0000 (15:15 +0100)
commitd6f010dead1a0d4b8a9e51f0187617b0394c9c2a
treebc98a1f6829ded8fc3113b5a8067b1c911f17757
parentced296d2c0483ad74988b263921917f107a1da04
gh-111178: fix UBSan failures in `Modules/_decimal` (GH-129074)

* Introduce & use cast macros
* fix UBSan failures for `PyDecContextObject`
* fix UBSan failures for `PyDecContextManagerObject`
* remove redundant casts for `PyDecObject`
Modules/_decimal/_decimal.c