Const slice indexing was not bounds checked.

This commit is contained in:
Christoffer Lerno
2025-07-03 23:53:01 +02:00
parent 759bc1d909
commit a46f73ad24
4 changed files with 19 additions and 21 deletions

View File

@@ -0,0 +1,6 @@
fn int main()
{
const char[] ARR = { 1, 2, 3, 4, 5 };
$echo $defined(ARR[5]);
return 0;
}