Skip to content

Commit 724c26a

Browse files
committed
Add possible fix
1 parent f2b090a commit 724c26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp.Drawing/Processing/Processors/Drawing/FillRegionProcessor{TPixel}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected override void OnFrameApply(ImageFrame<TPixel> source, Rectangle source
105105

106106
QuickSort.Sort(buffer.Slice(0, pointsFound));
107107

108-
for (int point = 0; point < pointsFound; point += 2)
108+
for (int point = 0; point < pointsFound && point < buffer.Length - 1; point += 2)
109109
{
110110
// points will be paired up
111111
float scanStart = buffer[point] - minX;

0 commit comments

Comments
 (0)