diff options
| author | Kazuma Watanabe <watassbass@gmail.com> | 2023-07-01 09:29:43 +0000 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2023-07-07 09:15:28 -0700 |
| commit | 527ec318631dc6db59da91e8ca7f205fc989ebc5 (patch) | |
| tree | f84c6ec411d5d168322852f28a6654402c2dfb46 /ext | |
| parent | 7208bce57fadb72db3a328ebc9aa86489cd06fce (diff) | |
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.
Diffstat (limited to 'ext')
0 files changed, 0 insertions, 0 deletions
