From bb78f08ac9b0544eba270172dff5bc1416cb363e Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 10 Apr 2018 18:52:21 -0400 Subject: [PATCH] ... --- coders/pnm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coders/pnm.c b/coders/pnm.c index e38036126..08c1989cb 100644 --- a/coders/pnm.c +++ b/coders/pnm.c @@ -637,6 +637,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception) quantum_type=GrayQuantum; extent=3*(image->depth <= 8 ? 1 : image->depth <= 16 ? 2 : 4)* image->columns; + quantum_info=AcquireQuantumInfo(image_info,image); if (quantum_info == (QuantumInfo *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); for (y=0; y < (ssize_t) image->rows; y++) -- 2.40.0