Skip to content

Commit 2ee6ac4

Browse files
committed
[3.14] gh-144012: Check null binary op extend (GH-144014)
(cherry picked from commit 54bedcf) Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent 5573df1 commit 2ee6ac4

6 files changed

Lines changed: 10 additions & 2 deletions

File tree

Include/internal/pycore_opcode_metadata.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check if the result is ``NULL`` in ``BINARY_OP_EXTENT`` opcode.

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ dummy_func(
824824

825825
PyObject *res_o = d->action(left_o, right_o);
826826
DECREF_INPUTS();
827+
ERROR_IF(res_o == NULL);
827828
res = PyStackRef_FromPyObjectSteal(res_o);
828829
}
829830

Python/executor_cases.c.h

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)