We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5820ce8 commit 850601aCopy full SHA for 850601a
Python/codegen.c
@@ -825,6 +825,9 @@ codegen_process_deferred_annotations(compiler *c, location loc)
825
void *key = (void *)((uintptr_t)ste->ste_id + 1);
826
827
// Get the first annotation location
828
+ if (PyList_GET_SIZE(deferred_anno) == 0) {
829
+ goto error;
830
+ }
831
PyObject* ptr = PyList_GET_ITEM(deferred_anno, 0);
832
stmt_ty st = (stmt_ty)PyLong_AsVoidPtr(ptr);
833
if (st == NULL) {
0 commit comments