Message383799
The pitfall of PyType_FromModuleAndSpec() is that it makes types instantiable by default if tp_new is not provided. Created objects can crash when you try to use them because they are not properly initialized.
When there was few uses of PyType_FromModuleAndSpec() I fixed them and added tests, but now there are much more types created with PyType_FromModuleAndSpec(). Please check all other uses of PyType_FromModuleAndSpec(), add workarounds and tests. |
|
Date |
User |
Action |
Args |
2020-12-26 10:25:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, amaury.forgeotdarc, orsenthil, kylotan, vstinner, christian.heimes, tlesher, phsilva, petr.viktorin, ysj.ray, santoso.wijaya, lukasz.langa, python-dev, eric.snow, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991, erlendaasland, koubaa |
2020-12-26 10:25:42 | serhiy.storchaka | set | messageid: <1608978342.41.0.121020284.issue1635741@roundup.psfhosted.org> |
2020-12-26 10:25:42 | serhiy.storchaka | link | issue1635741 messages |
2020-12-26 10:25:41 | serhiy.storchaka | create | |
|