Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix also _BINARY_OP_INPLACE_ADD_UNICODE opcode
  • Loading branch information
vstinner committed Mar 18, 2026
commit 659c4ed1e045abc8f8ce2fc81a992d6e71857faf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Handle properly memory allocation failures on float operations in the
bytecode opcodes. Patch by Victor Stinner.
Handle properly memory allocation failures on str and float opcodes. Patch by
Victor Stinner.
4 changes: 2 additions & 2 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,9 @@ dummy_func(
PyObject *temp = PyStackRef_AsPyObjectSteal(*target_local);
PyObject *right_o = PyStackRef_AsPyObjectSteal(right);
PyUnicode_Append(&temp, right_o);
*target_local = PyStackRef_FromPyObjectSteal(temp);
Py_DECREF(right_o);
ERROR_IF(PyStackRef_IsNull(*target_local));
ERROR_IF(temp == NULL);
*target_local = PyStackRef_FromPyObjectSteal(temp);
#if TIER_ONE
// The STORE_FAST is already done. This is done here in tier one,
// and during trace projection in tier two:
Expand Down
6 changes: 2 additions & 4 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading