From: Cristy Date: Tue, 10 Apr 2018 22:52:21 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb78f08ac9b0544eba270172dff5bc1416cb363e;p=imagemagick ... --- 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++)