mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
Fix SF buf 404774 submitted by Gregory H. Ball
A user program could delete a function's func_closure, which would cause it to crash when called.
This commit is contained in:
parent
280c81a940
commit
3f571d6497
@ -130,7 +130,7 @@ static struct memberlist func_memberlist[] = {
|
||||
{"func_globals", T_OBJECT, OFF(func_globals), READONLY},
|
||||
{"func_name", T_OBJECT, OFF(func_name), READONLY},
|
||||
{"__name__", T_OBJECT, OFF(func_name), READONLY},
|
||||
{"func_closure", T_OBJECT, OFF(func_closure)},
|
||||
{"func_closure", T_OBJECT, OFF(func_closure), READONLY},
|
||||
{"func_defaults", T_OBJECT, OFF(func_defaults)},
|
||||
{"func_doc", T_OBJECT, OFF(func_doc)},
|
||||
{"__doc__", T_OBJECT, OFF(func_doc)},
|
||||
|
Loading…
Reference in New Issue
Block a user