https://github.com/python/cpython/commit/7ca9e7ad053c24ae40fc68bc931ca1ff8abbc956 commit: 7ca9e7ad053c24ae40fc68bc931ca1ff8abbc956 branch: main author: Shamil <[email protected]> committer: sobolevn <[email protected]> date: 2026-01-17T18:05:09Z summary:
Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097) Co-authored-by: sobolevn <[email protected]> files: M Modules/_testcapi/module.c diff --git a/Modules/_testcapi/module.c b/Modules/_testcapi/module.c index 7b5861bc08ed77..ef657842e77494 100644 --- a/Modules/_testcapi/module.c +++ b/Modules/_testcapi/module.c @@ -178,7 +178,7 @@ module_from_slots_exec(PyObject *self, PyObject *spec) } static PyObject * -create_attr_from_spec(PyObject *spec, PyObject *def) +create_attr_from_spec(PyObject *spec, PyModuleDef *def) { assert(!def); return PyObject_GetAttrString(spec, "_gimme_this"); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
