mirror of
https://github.com/python/cpython.git
synced 2026-01-26 04:48:57 +00:00
Fix UBSan error in _testcapi: correct create_attr_from_spec signature (#143097)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
f7fceed79c
commit
7ca9e7ad05
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user