Browse Source
Merge pull request #2019 from flew2bits/fix-png-identify-issue-with-sBIT-chunk
Fix issue in PNG identify method to skip "uninteresting" chunks, incl…
pull/2034/head
James Jackson-South
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
src/ImageSharp/Formats/Png/PngDecoderCore.cs
|
|
|
@ -336,6 +336,14 @@ namespace SixLabors.ImageSharp.Formats.Png |
|
|
|
break; |
|
|
|
case PngChunkType.End: |
|
|
|
goto EOF; |
|
|
|
|
|
|
|
default: |
|
|
|
if (this.colorMetadataOnly) |
|
|
|
{ |
|
|
|
this.SkipChunkDataAndCrc(chunk); |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
finally |
|
|
|
|