]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-146092: Fix error handling in _BINARY_OP_ADD_FLOAT opcode (#146119)
authorVictor Stinner <vstinner@python.org>
Thu, 19 Mar 2026 11:14:33 +0000 (12:14 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Mar 2026 11:14:33 +0000 (12:14 +0100)
commit7f29c1d0dabb84fc91caf874881b501345702793
treed7ec8e49436b851b24116d41b8b5618e2714728c
parentcfdc5e86dde549bac97b8c61b1089d890ca1aaf3
[3.14] gh-146092: Fix error handling in _BINARY_OP_ADD_FLOAT opcode (#146119)

Fix error handling in _PyFloat_FromDouble_ConsumeInputs() used by
_BINARY_OP_ADD_FLOAT, _BINARY_OP_SUBTRACT_FLOAT and
_BINARY_OP_MULTIPLY_FLOAT opcodes. PyStackRef_FromPyObjectSteal()
must not be called with a NULL pointer.

Fix also _BINARY_OP_INPLACE_ADD_UNICODE opcode.
Misc/NEWS.d/next/Core_and_Builtins/2026-03-18-16-57-56.gh-issue-146092.wCKFYS.rst [new file with mode: 0644]
Objects/floatobject.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h