Merge pull request #239 from DRMacIver/overflows
Avoid undefined behaviour with large array indices
This commit is contained in:
commit
f147b7fae5
4 files changed
+41
-10
No files matched your search
@@ -722,3 +722,11 @@ map(has(2))
|
||||
keys
|
||||
[42,3,35]
|
||||
[0,1,2]
|
||||
|
||||
[][.]
|
||||
1000000000000000000
|
||||
null
|
||||
|
||||
map([1,2][0:.])
|
||||
[-1, 1, 2, 3, 1000000000000000000]
|
||||
[[1], [1], [1,2], [1,2], [1,2]]
|
||||
Reference in new issue
Block a user