diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-10-03 18:17:12 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-10-03 18:17:12 +0000 |
commit | 75bdf86d61cb0f01aa0da7e99819d88d927d69f3 (patch) | |
tree | c6ae872b9fa6ee3ced58e91a7f7abb1a33f1ef70 | |
parent | 37e1ed68e50b3f695da310a445fdfa8abd39386d (diff) | |
download | php-git-75bdf86d61cb0f01aa0da7e99819d88d927d69f3.tar.gz |
Fixed bug #55750 (memory copy issue in sysvshm extension).
-rw-r--r-- | ext/sysvshm/sysvshm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |