Skip to content

Add a recursion limit to the evaluation of type_expr & parse_expr #2935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mamcx
Copy link
Contributor

@mamcx mamcx commented Jul 11, 2025

Description of Changes

Add a guard against stack overflow in case of nested expression and joins.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

  • Find how deep can be recursed the affected functions and put a limit on it
  • Add a extra test to prove we can (in theory) do lots of joins in the planning steps, even if executing them will be slow

@mamcx mamcx requested a review from joshua-spacetime July 11, 2025 22:20
@mamcx mamcx self-assigned this Jul 11, 2025
@mamcx mamcx added the release-any To be landed in any release window label Jul 11, 2025
@mamcx mamcx force-pushed the mamcx/recursion-limit-expr branch 3 times, most recently from 5df9037 to 9e0e9d9 Compare July 16, 2025 17:52
@mamcx mamcx force-pushed the mamcx/recursion-limit-expr branch 2 times, most recently from e77fea7 to e92d223 Compare July 17, 2025 20:33
@mamcx mamcx force-pushed the mamcx/recursion-limit-expr branch from e92d223 to 908cf91 Compare July 21, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants