Closed TristonianJones closed 2 years ago
@jsannemo I believe this will close https://github.com/google/cel-spec/issues/197 as the C++ conformance harness uses the same parser as gRPC and it can now safely evaluate these expressions with the new limits.
Adjust the parser recursion limits to mirror production limits
CEL implementations must support certain minimum levels of rule recursion and repetition. Originally, these values were set at 32 for all operations whether the limit was practical or not. However, the initial limits proved difficult to encode into abstract syntax trees which would not exceed the stack recursion limits of gRPC and protobuf. These limits have been adjusted for practicality and with production recursion limits in mind.