Browse Source
Merge branch 'master' into js/wu-quantizer
pull/393/head
James Jackson-South
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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"); |
|
|
|
} |
|
|
|
|