Bug report
Bug description:
In Modules/_testcapi/list.c list_clear function. NULLABLE(obj) may set obj to NULL. Then, it calls PyList_Clear
which in turn calls PyList_Check and then PyType_FastSubclass that calls PyType_HasFeature with type = NULL, which is derefernced here.
A similar phenomenon happens in other Modules/_testcapi/list.c functions as well.
CPython versions tested on:
3.13
Operating systems tested on:
Linux