From: Ilia Alshanetsky Date: Mon, 3 Oct 2011 18:17:12 +0000 (+0000) Subject: Fixed bug #55750 (memory copy issue in sysvshm extension). X-Git-Tag: php-5.3.9RC1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=347a04711b5feb375b5fd16ae5a5099d4824e6e0;p=php Fixed bug #55750 (memory copy issue in sysvshm extension). --- diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index 33b1070325..781c856ec9 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -424,7 +424,7 @@ static int php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos) ptr->free += chunk_ptr->next; ptr->end -= chunk_ptr->next; if (memcpy_len > 0) { - memcpy(chunk_ptr, next_chunk_ptr, memcpy_len); + memmove(chunk_ptr, next_chunk_ptr, memcpy_len); } return 0; }