Skip to content

Commit 4ef0508

Browse files
authored
Merge pull request #9 from VPDPersonal/claude/affectionate-bell-EWEkq
Validate negative startIndex in ObservableList.RemoveRange
2 parents 979b375 + 86aac58 commit 4ef0508

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Runtime/Observable/ObservableList.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public void RemoveAt(int index)
168168

169169
public void RemoveRange(int startIndex, int count)
170170
{
171+
if (startIndex < 0) throw new ArgumentOutOfRangeException(nameof(startIndex));
171172
if (count < 0) throw new ArgumentOutOfRangeException(nameof(count));
172173

173174
lock (SyncRoot)

0 commit comments

Comments
 (0)