diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs index a21f1a71d7..14a7d49489 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs @@ -788,6 +788,11 @@ private void ProcessApp13Marker(BufferedReadStream stream, int remaining) } } } + else + { + // If the profile is unknown skip over the rest of it. + stream.Skip(remaining); + } } ///