WebKit Bugzilla
Attachment 370037 Details for
Bug 197945
: Fix memcpy() call for big endian
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-197945-20190516140430.patch (text/plain), 1.14 KB, created by
Eike Rathke
on 2019-05-16 05:04:31 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Eike Rathke
Created:
2019-05-16 05:04:31 PDT
Size:
1.14 KB
patch
obsolete
>Subversion Revision: 245393 >diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog >index a8c99e2416dbc49653039d7261b1ecd94be5ef47..f8d64afa081d926fc43d346eb5d9a9b4b5851dff 100644 >--- a/Source/WTF/ChangeLog >+++ b/Source/WTF/ChangeLog >@@ -1,3 +1,13 @@ >+2019-05-16 Eike Rathke <erack@redhat.com> >+ >+ Fix memcpy() call for big endian >+ https://bugs.webkit.org/show_bug.cgi?id=197945 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wtf/Packed.h: >+ (WTF::alignof): >+ > 2019-05-15 Ross Kirsling <ross.kirsling@sony.com> > > [PlayStation] WTFCrash should preserve register state. >diff --git a/Source/WTF/wtf/Packed.h b/Source/WTF/wtf/Packed.h >index fb8815fc85111446beb960623406c5e6b5749cf3..c5abdba794856e3a5cd542d6c3af933100dce21d 100644 >--- a/Source/WTF/wtf/Packed.h >+++ b/Source/WTF/wtf/Packed.h >@@ -149,7 +149,7 @@ public: > #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 > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197945
: 370037