Skip to content

Commit 1252289

Browse files
committed
[3.13] gh-132744: Runaway recursion for _PY_FRAME_GENERAL (GH-132746)
1 parent 41c2c8f commit 1252289

File tree

8 files changed

+163
-122
lines changed

8 files changed

+163
-122
lines changed

Include/internal/pycore_opcode_metadata.h

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

Include/internal/pycore_uop_ids.h

Lines changed: 118 additions & 117 deletions
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: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_opcache.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,13 @@ def count_args(self, *args):
537537
MyClass.__init__.__code__ = count_args.__code__
538538
instantiate()
539539

540+
def test_recursion_check_for_general_calls(self):
541+
def test(default=None):
542+
return test()
543+
544+
with self.assertRaises(RecursionError):
545+
test()
546+
540547

541548
@threading_helper.requires_working_threading()
542549
@requires_specialization

0 commit comments

Comments
 (0)