Home | History | Annotate | Download | only in libtiff
      1 diff --git a/third_party/libtiff/tif_read.c b/third_party/libtiff/tif_read.c
      2 index 5cb419bd4..548b1f5ea 100644
      3 --- a/third_party/libtiff/tif_read.c
      4 +++ b/third_party/libtiff/tif_read.c
      5 @@ -936,6 +936,9 @@ TIFFReadBufferSetup(TIFF* tif, void* bp, tmsize_t size)
      6  		    return (0);
      7  		}
      8  		tif->tif_rawdata = (uint8*) _TIFFmalloc(tif->tif_rawdatasize);
      9 +		if (tif->tif_rawdata)
     10 +			memset(tif->tif_rawdata, 0, tif->tif_rawdatasize);
     11 +
     12  		tif->tif_flags |= TIFF_MYBUFFER;
     13  	}
     14  	if (tif->tif_rawdata == NULL) {
     15