From c43abd2edef521cf806bf21804b16a0ccbf5a664 Mon Sep 17 00:00:00 2001 From: Shamil Abdulaev Date: Tue, 23 Dec 2025 18:37:29 +0300 Subject: [PATCH] Fix UBSan error in _testcapi: correct create_attr_from_spec signature --- 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 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");