mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Const slice indexing was not bounds checked.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fn int main()
|
||||
{
|
||||
const char[] ARR = { 1, 2, 3, 4, 5 };
|
||||
$echo $defined(ARR[5]);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user