gh-144012: Check null binary op extend (#144014)

This commit is contained in:
AN Long 2026-01-19 03:38:37 +09:00 committed by GitHub
parent 63cc1257db
commit 54bedcf714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 2 deletions

View file

@ -359,6 +359,9 @@
stack_pointer = _PyFrame_GetStackPointer(frame);
stack_pointer += -2;
ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
if (res_o == NULL) {
JUMP_TO_LABEL(error);
}
res = PyStackRef_FromPyObjectSteal(res_o);
}
stack_pointer[0] = res;