Skip to content

Commit eacbfe1

Browse files
committed
[Mono.Debugging.Evaluation] Make sure that array element groups do not exceed the length of the array
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=47083
1 parent eec5439 commit eacbfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/ArrayElementGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public ObjectValue[] GetChildren (ObjectPath path, int firstItemIndex, int count
226226
var list = new List<ObjectValue> ();
227227
while (i < len) {
228228
int end = i + div - 1;
229-
if (end > len)
229+
if (end >= len)
230230
end = len - 1;
231231
ArrayElementGroup grp = new ArrayElementGroup (cctx, array, baseIndices, i, end);
232232
list.Add (grp.CreateObjectValue ());

0 commit comments

Comments
 (0)