From 7ca9e7ad053c24ae40fc68bc931ca1ff8abbc956 Mon Sep 17 00:00:00 2001 From: Shamil Date: Sat, 17 Jan 2026 21:05:09 +0300 Subject: [PATCH] Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097) Co-authored-by: sobolevn --- Modules/_testcapi/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_testcapi/module.c b/Modules/_testcapi/module.c index 7b5861bc08e..ef657842e77 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");