microsoft / rego-cpp

A C++ interpreter for the OPA policy language Rego
https://microsoft.github.io/rego-cpp/
MIT License
33 stars 10 forks source link

Non utf8 policy, data or input causes range check error #119

Closed anakrish closed 5 months ago

anakrish commented 9 months ago
$ dd if=bin/rego of=bad.json bs=1K count=2
$ bin/rego -i bad.json data
rego 0.3.11 (HEAD:6d84fc7, Fri, 19 Jan 2024 17:29:17 +0000)[GNU 11.4.0] on linux
vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)