Bug 1230907 - mPixelRowSize added to constructor with 0 value. r=seth
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 14 Mar 2016 10:36:36 +0200
changeset 339912 eceb5235a54da29b7280153f0a130eece3682d4e
parent 339911 aff73b00706cba2c828db99ad0059448834523f8
child 339913 e3a45833901b5d826b1586d78aa11e7f453d47ad
push id12823
push userjmaher@mozilla.com
push dateMon, 14 Mar 2016 10:52:22 +0000
reviewersseth
bugs1230907
milestone48.0a1
Bug 1230907 - mPixelRowSize added to constructor with 0 value. r=seth
image/decoders/nsBMPDecoder.cpp
--- a/image/decoders/nsBMPDecoder.cpp
+++ b/image/decoders/nsBMPDecoder.cpp
@@ -172,16 +172,17 @@ nsBMPDecoder::nsBMPDecoder(RasterImage* 
   , mLexer(Transition::To(aState, aLength))
   , mIsWithinICO(false)
   , mMayHaveTransparency(false)
   , mDoesHaveTransparency(false)
   , mNumColors(0)
   , mColors(nullptr)
   , mBytesPerColor(0)
   , mPreGapLength(0)
+  , mPixelRowSize(0)
   , mCurrentRow(0)
   , mCurrentPos(0)
   , mAbsoluteModeNumPixels(0)
 {
 }
 
 // Constructor for normal BMP files.
 nsBMPDecoder::nsBMPDecoder(RasterImage* aImage)