Title: [245395] trunk/Source/WTF
Revision
245395
Author
[email protected]
Date
2019-05-16 06:38:10 -0700 (Thu, 16 May 2019)

Log Message

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

Patch by Eike Rathke <[email protected]> on 2019-05-16
Reviewed by Michael Catanzaro.

* wtf/Packed.h:
(WTF::alignof):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (245394 => 245395)


--- trunk/Source/WTF/ChangeLog	2019-05-16 11:48:52 UTC (rev 245394)
+++ trunk/Source/WTF/ChangeLog	2019-05-16 13:38:10 UTC (rev 245395)
@@ -1,3 +1,13 @@
+2019-05-16  Eike Rathke  <[email protected]>
+
+        Fix memcpy() call for big endian
+        https://bugs.webkit.org/show_bug.cgi?id=197945
+
+        Reviewed by Michael Catanzaro.
+
+        * wtf/Packed.h:
+        (WTF::alignof):
+
 2019-05-15  Ross Kirsling  <[email protected]>
 
         [PlayStation] WTFCrash should preserve register state.

Modified: trunk/Source/WTF/wtf/Packed.h (245394 => 245395)


--- trunk/Source/WTF/wtf/Packed.h	2019-05-16 11:48:52 UTC (rev 245394)
+++ trunk/Source/WTF/wtf/Packed.h	2019-05-16 13:38:10 UTC (rev 245395)
@@ -149,7 +149,7 @@
 #if CPU(LITTLE_ENDIAN)
         memcpy(m_storage.data(), &value, storageSize);
 #else
-        memcpy(m_storage.data(), bitwise_cast<uint8_t*>(&value) + (sizeof(void*) - storageSize));
+        memcpy(m_storage.data(), bitwise_cast<uint8_t*>(&value) + (sizeof(void*) - storageSize), storageSize);
 #endif
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to