Browse Source

Removed invalid check reported in issue #394.

pull/397/head
Dirk Lemstra 8 years ago
committed by Dirk Lemstra
parent
commit
dde5334062
  1. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

2
src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

@ -688,7 +688,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
}
int th = this.Temp[0] & 0x0f;
if (th > OrigHuffmanTree.MaxTh || (!this.IsProgressive && (th > 1)))
if (th > OrigHuffmanTree.MaxTh)
{
throw new ImageFormatException("Bad Th value");
}

Loading…
Cancel
Save