From db78cf40349cbaf57e74ddc0338cfe6bf523cc40 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: 620f6398ecdab9471559bce7336da4f1e04e28dc Former-commit-id: ffd8b8022220d5a2fd6cbb31e634b757ad7fac0e Former-commit-id: fdbd060401915bc64fcf268263cdb0ffcb4dc647 --- 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 919622e087..2ae91f2584 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.