Changeset 245395 in webkit


Ignore:
Timestamp:
May 16, 2019 6:38:10 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Fix memcpy() call for big endian
https://bugs.webkit.org/show_bug.cgi?id=197945

Patch by Eike Rathke <erack@redhat.com> on 2019-05-16
Reviewed by Michael Catanzaro.

  • wtf/Packed.h:

(WTF::alignof):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245369 r245395  
     12019-05-16  Eike Rathke  <erack@redhat.com>
     2
     3        Fix memcpy() call for big endian
     4        https://bugs.webkit.org/show_bug.cgi?id=197945
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * wtf/Packed.h:
     9        (WTF::alignof):
     10
    1112019-05-15  Ross Kirsling  <ross.kirsling@sony.com>
    212
  • trunk/Source/WTF/wtf/Packed.h

    r245239 r245395  
    150150        memcpy(m_storage.data(), &value, storageSize);
    151151#else
    152         memcpy(m_storage.data(), bitwise_cast<uint8_t*>(&value) + (sizeof(void*) - storageSize));
     152        memcpy(m_storage.data(), bitwise_cast<uint8_t*>(&value) + (sizeof(void*) - storageSize), storageSize);
    153153#endif
    154154    }
Note: See TracChangeset for help on using the changeset viewer.