diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-02 12:11:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-02 15:51:16 +0100 |
commit | f95f708548343d7589474b723a69508223f6da4c (patch) | |
tree | f6a20a79082f90ce720cdcbd40730a672dd76a69 /filter | |
parent | 8e45fbd60e8c7e17503a12dcdd13f2aeeb243d25 (diff) |
coverity#707833 Uninitialized pointer field
Change-Id: I355ada53d637ad16d88c7e8d8b0f333915f54b6e
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/itiff/itiff.cxx | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx index c15465f94175..c2744688f352 100644 --- a/filter/source/graphicfilter/itiff/itiff.cxx +++ b/filter/source/graphicfilter/itiff/itiff.cxx @@ -123,7 +123,54 @@ private: bool HasAlphaChannel() const; public: - TIFFReader() : pAlphaMask(0), pMaskAcc(0) {} + TIFFReader() + : bStatus(false) + , nLastPercent(0) + , pTIFF(NULL) + , pAcc(NULL) + , nDstBitsPerPixel(0) + , pAlphaMask(NULL) + , pMaskAcc(NULL) + , nOrigPos(0) + , nOrigNumberFormat(0) + , nDataType(0) + , bByteSwap(false) + , nNewSubFile(0) + , nSubFile(0) + , nImageWidth(0) + , nImageLength(0) + , nBitsPerSample(1) + , nCompression(1) + , nPhotometricInterpretation(0) + , nThresholding(1) + , nCellWidth(1) + , nCellLength(1) + , nFillOrder(1) + , pStripOffsets(NULL) + , nNumStripOffsets(0) + , nOrientation(1) + , nSamplesPerPixel(1) + , nRowsPerStrip(0xffffffff) + , pStripByteCounts(NULL) + , nNumStripByteCounts(0) + , nMinSampleValue(0) + , nMaxSampleValue(0) + , fXResolution(0.0) + , fYResolution(0.0) + , nPlanarConfiguration(1) + , nGroup3Options(0) + , nGroup4Options(0) + , nResolutionUnit(2) + , nPredictor(0) + , pColorMap(NULL) + , nNumColors(0) + , nPlanes(0) + , nStripsPerPlane(0) + , nBytesPerRow(0) + { + pMap[ 0 ] = pMap[ 1 ] = pMap[ 2 ] = pMap[ 3 ] = NULL; + } + ~TIFFReader() { delete pAlphaMask; |