]> git.saurik.com Git - wxWidgets.git/blobdiff - src/tiff/tif_fax3.c
Changed name to wxFIXED_MINSIZE since that is more descriptive of what
[wxWidgets.git] / src / tiff / tif_fax3.c
index d10ee1a2545a6ac7531bd05042100eedecb8800e..8f100d87aa6510e1cfb17c0696cfd887894a4db8 100644 (file)
@@ -499,7 +499,8 @@ Fax3SetupState(TIFF* tif)
                uint32 nruns = needsRefLine ?
                     2*TIFFroundup(rowpixels,32) : rowpixels;
 
-               dsp->runs = (uint32*) _TIFFmalloc(nruns*sizeof (uint16));
+               dsp->runs = (uint32*) _TIFFmalloc((2*nruns+3)*sizeof (uint32));
+
                if (dsp->runs == NULL) {
                        TIFFError("Fax3SetupState",
                            "%s: No space for Group 3/4 run arrays",