Skip to content
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

fix: Prevent stack overflow in recursive const types #16915

Merged
merged 2 commits into from
Mar 24, 2024
Merged

Commits on Mar 21, 2024

  1. fix: Prevent stack overflow in recursive const types

    In the evaluation of const values of recursive types
    certain declarations could cause an endless call-loop
    within the interpreter (hir-ty’s create_memory_map),
    which would lead to a stack overflow.
    This commit adds a check that prevents values that contain
    an address in their value (such as TyKind::Ref) from being
    allocated at the address they contain.
    The commit also adds a test for this edge case.
    6d7a committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7c1be82 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2024

  1. Configuration menu
    Copy the full SHA
    142ef76 View commit details
    Browse the repository at this point in the history