Changeset 74216 in webkit


Ignore:
Timestamp:
Dec 16, 2010 3:12:51 PM (13 years ago)
Author:
rniwa@webkit.org
Message:

2010-12-16 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Cameron Zwarich.

REGRESSION(r74172): 125 java tests fail on Mac
https://bugs.webkit.org/show_bug.cgi?id=51214

The regression was caused by an incorrectly adding sizeof(struct fat_header)
to a pointer for uint32_t as supposed to uint8_t.

Fixed the bug by explicitly casting it to uint8_t* before the addition.

  • Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage isNativeLibraryData:]):
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r74172 r74216  
     12010-12-16  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Reviewed by Cameron Zwarich.
     4
     5        REGRESSION(r74172): 125 java tests fail on Mac
     6        https://bugs.webkit.org/show_bug.cgi?id=51214
     7
     8        The regression was caused by an incorrectly adding sizeof(struct fat_header)
     9        to a pointer for uint32_t as supposed to uint8_t.
     10
     11        Fixed the bug by explicitly casting it to uint8_t* before the addition.
     12
     13        * Plugins/WebBasePluginPackage.mm:
     14        (-[WebBasePluginPackage isNativeLibraryData:]):
     15
    1162010-12-15  Cameron Zwarich  <zwarich@apple.com>
    217
  • trunk/WebKit/mac/Plugins/WebBasePluginPackage.mm

    r74172 r74216  
    396396                swapIntsInHeader(rawData.data(), rawData.size());
    397397           
    398             archs = (struct fat_arch*)(rawData.data() + sizeof(struct fat_header));           
     398            archs = (struct fat_arch*)((uint8_t*)rawData.data() + sizeof(struct fat_header));           
    399399            numArchs = ((struct fat_header *)rawData.data())->nfat_arch;
    400400           
Note: See TracChangeset for help on using the changeset viewer.