From: Shamil Date: Sat, 17 Jan 2026 18:05:09 +0000 (+0300) Subject: Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097) X-Git-Tag: v3.15.0a6~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ca9e7ad053c24ae40fc68bc931ca1ff8abbc956;p=thirdparty%2FPython%2Fcpython.git Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097) Co-authored-by: sobolevn --- diff --git a/Modules/_testcapi/module.c b/Modules/_testcapi/module.c index 7b5861bc08ed..ef657842e774 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");