~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-03-26 00:07:56 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080326000756-brg9rvarasvvyhf9
Tags: 1.8.1.13+nobinonly-0ubuntu1
* New security upstream release: 1.8.1.13 (LP: #207171)
* Security fixes:
  - MFSA 2008-19 XUL popup spoofing variant (cross-tab popups)
  - MFSA 2008-18 Java socket connection to any local port via LiveConnect
  - MFSA 2008-17 Privacy issue with SSL Client Authentication
  - MFSA 2008-16 HTTP Referrer spoofing with malformed URLs
  - MFSA 2008-15 Crashes with evidence of memory corruption
  - MFSA 2008-14 JavaScript privilege escalation and arbitrary code execution
* Merge from debian unstable (1.8.1.12-5). Remaining ubuntu changes:
  - debian/patches/88_force-no-pragma-visibility-for-gcc-4.2_4.3.dpatch
  - xulrunner alternative in /usr/bin
* Drop patches applied upstream:
  - drop debian/patches/10_SECAlgorithmIDTemplate.dpatch
  - update debian/patches/00list
* Update diverged patches:
  - update debian/patches/99_configure.dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
            if (mBIH.colors && mBIH.colors < mNumColors)
263
263
                mNumColors = mBIH.colors;
264
264
 
265
 
            mColors = new colorTable[mNumColors];
 
265
            // Always allocate 256 even though mNumColors might be smaller
 
266
            mColors = new colorTable[256];
266
267
            if (!mColors)
267
268
                return NS_ERROR_OUT_OF_MEMORY;
 
269
 
 
270
            memset(mColors, 0, 256 * sizeof(colorTable));
268
271
        }
269
272
        else if (mBIH.compression != BI_BITFIELDS && mBIH.bpp == 16) {
270
273
            // Use default 5-5-5 format