diff options
Diffstat (limited to 'harmony/snappy/fix-UnalignedCopy64.patch')
-rw-r--r-- | harmony/snappy/fix-UnalignedCopy64.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/harmony/snappy/fix-UnalignedCopy64.patch b/harmony/snappy/fix-UnalignedCopy64.patch new file mode 100644 index 000000000..ea64639a1 --- /dev/null +++ b/harmony/snappy/fix-UnalignedCopy64.patch @@ -0,0 +1,13 @@ +diff --git a/snappy.cc b/snappy.cc +index 4bcea0b..2db94b7 100644 +--- a/snappy.cc ++++ b/snappy.cc +@@ -89,7 +89,7 @@ size_t MaxCompressedLength(size_t source_len) { + namespace { + + void UnalignedCopy64(const void* src, void* dst) { +- memcpy(dst, src, 8); ++ memmove(dst, src, 8); + } + + void UnalignedCopy128(const void* src, void* dst) { |