You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ImageSharp/Formats/Tiff/Compression/Decompressors/LzwString.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,9 @@ public int WriteTo(Span<byte> buffer, int offset)
77
77
78
78
LzwStringe=this;
79
79
intendIdx=this.Length-1;
80
-
if(endIdx>=buffer.Length)
80
+
if(offset+endIdx>=buffer.Length)
81
81
{
82
-
TiffThrowHelper.ThrowImageFormatException("Error reading lzw compressed stream. Either pixel buffer to write to is to small or code length is invalid!");
82
+
TiffThrowHelper.ThrowImageFormatException("Error reading lzw compressed stream. Either pixel buffer to write to is too small or code length is invalid!");
0 commit comments