google / cel-go

Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
https://cel.dev
Apache License 2.0
2.3k stars 224 forks source link

Do not permit unbounded recursive flattening in lists #1007

Closed l46kok closed 2 months ago

l46kok commented 3 months ago

Cyclic lists will lead to an infinite recursion. For safety, we want to disallow accepting negative depth level to flatten function.