Kaydet (Commit) f95f7085 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707833 Uninitialized pointer field

Change-Id: I355ada53d637ad16d88c7e8d8b0f333915f54b6e
üst 8e45fbd6
...@@ -123,7 +123,54 @@ private: ...@@ -123,7 +123,54 @@ private:
bool HasAlphaChannel() const; bool HasAlphaChannel() const;
public: 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() ~TIFFReader()
{ {
delete pAlphaMask; delete pAlphaMask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment