ensure fax3/4 runs array is initialized
This commit is contained in:
parent
0615e2a2b6
commit
da49b1d230
@ -1,3 +1,7 @@
|
||||
2012-06-12 Frank Warmerdam <warmerdam@google.com>
|
||||
|
||||
* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
|
||||
|
||||
2012-06-07 Frank Warmerdam <warmerdam@google.com>
|
||||
|
||||
* libtiff/tif_print.c: avoid pretty printing other fields when
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_fax3.c,v 1.72 2010-06-09 17:17:13 bfriesen Exp $ */
|
||||
/* $Id: tif_fax3.c,v 1.73 2012-06-13 00:27:20 fwarmerdam Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990-1997 Sam Leffler
|
||||
@ -526,6 +526,7 @@ Fax3SetupState(TIFF* tif)
|
||||
"for Group 3/4 run arrays");
|
||||
if (dsp->runs == NULL)
|
||||
return (0);
|
||||
memset( dsp->runs, 0, TIFFSafeMultiply(uint32,nruns,2));
|
||||
dsp->curruns = dsp->runs;
|
||||
if (needsRefLine)
|
||||
dsp->refruns = dsp->runs + nruns;
|
||||
|
Loading…
Reference in New Issue
Block a user