Skip to content

Commit 06b063e

Browse files
committed
gh-149243: Check for recursion limits in CALL_ALLOC_AND_ENTER_INIT
1 parent 1fc2b38 commit 06b063e

8 files changed

Lines changed: 29 additions & 1 deletion

File tree

.jit-stamp

Whitespace-only changes.

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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check for recursion limits in ``CALL_ALLOC_AND_ENTER_INIT`` opcode.

Modules/_testinternalcapi/test_cases.c.h

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

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4737,6 +4737,7 @@ dummy_func(
47374737
unused/1 +
47384738
_CHECK_PEP_523 +
47394739
_CHECK_OBJECT +
4740+
_CHECK_RECURSION_REMAINING +
47404741
_ALLOCATE_OBJECT +
47414742
_CREATE_INIT_FRAME +
47424743
_PUSH_FRAME;

Python/generated_cases.c.h

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// c304ed754b0b65e0196cd50024bcbed7c38e65943d48292f97d34e35ddca13a6
2+
// $ python3.14 ./Tools/jit/build.py aarch64-apple-darwin24.6.0 --output-dir . --pyconfig-dir . --cflags= --llvm-version= --llvm-tools-install-dir= --debug
3+
4+
#define JIT_UNWIND_INFO_SUPPORTED 0

jit_unwind_info.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// $ python3.14 ./Tools/jit/build.py aarch64-apple-darwin24.6.0 --output-dir . --pyconfig-dir . --cflags= --llvm-version= --llvm-tools-install-dir= --debug
2+
#if defined(__aarch64__) && defined(__APPLE__)
3+
#include "jit_unwind_info-aarch64-apple-darwin.h"
4+
#else
5+
#error "unexpected target"
6+
#endif

0 commit comments

Comments
 (0)