From 8934a98f82ef1a60a6ace92ea424d25a08f83b2a Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Fri, 5 Aug 2011 11:11:53 +0000 Subject: [PATCH] - Fixed memcpy() that had possible overlapping areas to memmove() --- library/ssl_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 7cb625865..004c70ac0 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -996,7 +996,7 @@ int ssl_read_record( ssl_context *ssl ) */ ssl->in_msglen -= ssl->in_hslen; - memcpy( ssl->in_msg, ssl->in_msg + ssl->in_hslen, + memmove( ssl->in_msg, ssl->in_msg + ssl->in_hslen, ssl->in_msglen ); ssl->in_hslen = 4;