From d7e498ffe77f400e13553d258f3bae32dcea2db1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 21 Nov 2015 00:51:27 +1100 Subject: [PATCH] Bump up png max chunk value Former-commit-id: d4ce849616f2bc5d97f50b134dfecd4b88d58ffc Former-commit-id: 3c1438864b10ba4f98089b47420e82b0fe5f5324 Former-commit-id: ad6bda25c94c62c003d04b7748713f65147520e6 --- src/ImageProcessor/Formats/Png/PngDecoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageProcessor/Formats/Png/PngDecoderCore.cs b/src/ImageProcessor/Formats/Png/PngDecoderCore.cs index 919622e08..2ae91f258 100644 --- a/src/ImageProcessor/Formats/Png/PngDecoderCore.cs +++ b/src/ImageProcessor/Formats/Png/PngDecoderCore.cs @@ -24,7 +24,7 @@ namespace ImageProcessor.Formats /// /// The maximum chunk size. /// - private const int MaxChunkSize = 1024 * 1024; + private const int MaxChunkSize = int.MaxValue / 4 * sizeof(float); /// /// The dictionary of available color types.