Index: net/quic/quic_framer.cc |
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc |
index d4660bfa20b26012fbcdf02a00b2148a12064f2f..3e175026d61914c2c953c2ffb1e9118456e223c1 100644 |
--- a/net/quic/quic_framer.cc |
+++ b/net/quic/quic_framer.cc |
@@ -1691,7 +1691,7 @@ size_t QuicFramer::EncryptPayload(EncryptionLevel level, |
// Copy in the header, because the encrypter only populates the encrypted |
// plaintext content. |
const size_t ad_len = associated_data.length(); |
- memcpy(buffer, associated_data.data(), ad_len); |
+ memmove(buffer, associated_data.data(), ad_len); |
// Encrypt the plaintext into the buffer. |
size_t output_length = 0; |
if (!encrypter_[level]->EncryptPacket(packet_number, associated_data, |