Skip to content

Commit

Permalink
Check for overflow when adding to base offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreeve committed Apr 15, 2024
1 parent b4bf1cd commit e8a4b0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csharp/src/Apache.Arrow/Arrays/ArrayDataConcatenator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ private ArrowBuffer ConcatenateUnionOffsetBuffer()

for (int i = 0; i < typeCount; ++i)
{
baseOffsets[i] += arrayData.Children[i].Length;
checked
{
baseOffsets[i] += arrayData.Children[i].Length;
}
}
}

Expand Down

0 comments on commit e8a4b0a

Please sign in to comment.