Skip to content

Commit

Permalink
Remove reserved bytes check. Fix #2692
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jul 10, 2024
1 parent 449dba3 commit ede33dc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ImageSharp/Formats/Webp/WebpChunkParsingUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ public static WebpImageInfo ReadVp8XHeader(BufferedReadStream stream, Span<byte>

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

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

0 comments on commit ede33dc

Please sign in to comment.