From 97500145b71a3cd2c302701c7f9c4ba20c24aac1 Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Fri, 16 Jul 2021 17:34:59 +0300 Subject: [PATCH] Added todo --- src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs index bafd8e2155..77b1b44aff 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs @@ -1034,6 +1034,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg // Validate: both must be < 4 if (dcTableIndex >= 4 || acTableIndex >= 4) { + // TODO: extract as separate method? JpegThrowHelper.ThrowInvalidImageContentException($"Invalid huffman table for component:{componentSelectorId}: dc={dcTableIndex}, ac={acTableIndex}"); }