Browse Source
Change CgBI chunk name to ProprietaryApple
Co-Authored-By: James Jackson-South <james_south@hotmail.com>
pull/1184/head
Brian Popow
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
src/ImageSharp/Formats/Png/PngChunkType.cs
-
src/ImageSharp/Formats/Png/PngDecoderCore.cs
|
|
|
@ -125,6 +125,6 @@ namespace SixLabors.ImageSharp.Formats.Png |
|
|
|
/// Malformed chunk named CgBI produced by apple, which is not conform to the specification.
|
|
|
|
/// Related issue is here https://github.com/SixLabors/ImageSharp/issues/410
|
|
|
|
/// </summary>
|
|
|
|
MalformedApple = 0x43674249 |
|
|
|
ProprietaryApple = 0x43674249 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -215,8 +215,8 @@ namespace SixLabors.ImageSharp.Formats.Png |
|
|
|
case PngChunkType.End: |
|
|
|
this.isEndChunkReached = true; |
|
|
|
break; |
|
|
|
case PngChunkType.MalformedApple: |
|
|
|
PngThrowHelper.ThrowInvalidChunkType("Malformed Apple PNG detected! This PNG file is not conform to the specification and cannot be decoded."); |
|
|
|
case PngChunkType.ProprietaryApple: |
|
|
|
PngThrowHelper.ThrowInvalidChunkType("Proprietary Apple PNG detected! This PNG file is not conform to the specification and cannot be decoded."); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|