mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
4d8bd0f516
If a negative array index was hardcoded in the policy it would cause a panic (e.g., arr[-1]). This patch just fixes the select function to return nil like it does for out-of-bounds. Signed-off-by: Torin Sandall <torinsandall@gmail.com>