commit | 67c2457c9a09c5276d4f6e3c19f194c0ec66b1d4 | [log] [tgz] |
---|---|---|
author | root <[email protected]> | Thu Sep 28 16:57:54 2017 +0000 |
committer | Dirk Lemstra <[email protected]> | Thu Sep 28 21:11:13 2017 +0200 |
tree | aaa9baefd0bd83232089e91dfbd19a28ecc23d03 | |
parent | ba78ae311632fe205baa5eefe60345d41b95acec [diff] [blame] |
fix multiple null pointer
diff --git a/coders/dpx.c b/coders/dpx.c index aebadda..be208d3 100644 --- a/coders/dpx.c +++ b/coders/dpx.c
@@ -1969,6 +1969,8 @@ Convert pixel packets to DPX raster image. */ quantum_info=AcquireQuantumInfo(image_info,image); + if(quantum_info==NULL) + ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); SetQuantumQuantum(quantum_info,32); SetQuantumPack(quantum_info,dpx.image.image_element[0].packing == 0 ? MagickTrue : MagickFalse);