* libsoup/soup-socket.c (read_from_buf): Use memmove rather than
memcpy here, since the source and destination will overlap if
*nread is small and read_buf->len is large. (Noticed by valgrind,
#53625.)
+2004-02-03 Dan Winship <danw@ximian.com>
+
+ * libsoup/soup-socket.c (read_from_buf): Use memmove rather than
+ memcpy here, since the source and destination will overlap if
+ *nread is small and read_buf->len is large. (Noticed by valgrind,
+ #53625.)
+
2004-02-02 Joe Shaw <joe@ximian.com>
* libsoup/soup-gnutls.c (soup_gnutls_close): Call gnutls_bye()
g_byte_array_free (read_buf, TRUE);
sock->priv->read_buf = NULL;
} else {
- memcpy (read_buf->data, read_buf->data + *nread,
- read_buf->len - *nread);
+ memmove (read_buf->data, read_buf->data + *nread,
+ read_buf->len - *nread);
g_byte_array_set_size (read_buf, read_buf->len - *nread);
}