Skip to content

Commit 7a5cd86

Browse files
Merge pull request #1931 from mkehoe/custom-app13-bugfix
Fix for Jpeg Metadata Decoding with unknown APP13 profile
2 parents 576a69f + fab1691 commit 7a5cd86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,11 @@ private void ProcessApp13Marker(BufferedReadStream stream, int remaining)
788788
}
789789
}
790790
}
791+
else
792+
{
793+
// If the profile is unknown skip over the rest of it.
794+
stream.Skip(remaining);
795+
}
791796
}
792797

793798
/// <summary>

0 commit comments

Comments
 (0)