Skip to content

Commit ede33dc

Browse files
Remove reserved bytes check. Fix #2692
1 parent 449dba3 commit ede33dc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ImageSharp/Formats/Webp/WebpChunkParsingUtils.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,6 @@ public static WebpImageInfo ReadVp8XHeader(BufferedReadStream stream, Span<byte>
218218

219219
// 3 reserved bytes should follow which are supposed to be zero.
220220
stream.Read(buffer, 0, 3);
221-
if (buffer[0] != 0 || buffer[1] != 0 || buffer[2] != 0)
222-
{
223-
WebpThrowHelper.ThrowImageFormatException("reserved bytes should be zero");
224-
}
225221

226222
// 3 bytes for the width.
227223
uint width = ReadUInt24LittleEndian(stream, buffer) + 1;

0 commit comments

Comments
 (0)