[3.14] gh-144012: Check null binary op extend (GH-144014) (GH-144038)

(cherry picked from commit 54bedcf714)
This commit is contained in:
AN Long 2026-01-21 03:05:56 +09:00 committed by GitHub
parent 56cf72d626
commit f7567b44a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 2 deletions

View file

@ -824,6 +824,7 @@ dummy_func(
PyObject *res_o = d->action(left_o, right_o);
DECREF_INPUTS();
ERROR_IF(res_o == NULL);
res = PyStackRef_FromPyObjectSteal(res_o);
}