microsoft / regorus

Regorus - A fast, lightweight Rego (OPA policy language) interpreter written in Rust.
MIT License
106 stars 27 forks source link

Handle Rego files of more than 64KB size #214

Closed anakrish closed 2 months ago

anakrish commented 2 months ago

By design, u16 is currently used in Span to index into source location. The incorrect assumption was that policy files won't be large enough to exceed 64KB. However, AKS-CC files can exceed this limit.

There is a bug that regorus panics if such large files are presented.

This file size limitation must be removed.