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

hclsyntax: Impose an upper limit on a refined prefix in TemplateExpr #617

Merged

Commits on Jul 1, 2023

  1. hclsyntax: Impose an upper limit on a refined prefix in TemplateExpr

    There is no limit to the length of string prefixes produced by template
    expressions, so in rare cases they may return a refined unknown string
    has too long a prefix.
    
    The cty's msgpack decoder limits the size of an acceptable refinements
    to 1 kiB, so such a value cannot be handled and an error occurs.
    
    This change limits the length of prefixes to 128 B, so overly long
    prefixes are no longer an issue in most cases.
    wata727 committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    7ae61a0 View commit details
    Browse the repository at this point in the history