php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #67245
Patch zend_exceptions-memmove revision 2014-05-11 12:27 UTC by gm dot outside+php at gmail dot com

Patch zend_exceptions-memmove for *General Issues Bug #67245

Patch version 2014-05-11 12:27 UTC

Return to Bug #67245 | Download this patch
Patch Revisions:

Developer: gm.outside+php@gmail.com

diff -puNr php-5.5.12.orig/Zend/zend_exceptions.c php-5.5.12/Zend/zend_exceptions.c
--- php-5.5.12.orig/Zend/zend_exceptions.c      2014-04-29 08:04:30 +0000
+++ php-5.5.12/Zend/zend_exceptions.c   2014-05-11 12:09:47 +0000
@@ -363,7 +363,7 @@ ZEND_METHOD(error_exception, getSeverity

 #define TRACE_ARG_APPEND(vallen)                                              \
        *str = (char*)erealloc(*str, *len + 1 + vallen);                       \
-       memcpy((*str) + *len - l_added + 1 + vallen, (*str) + *len - l_added + 1, l_added);
+       memmove((*str) + *len - l_added + 1 + vallen, (*str) + *len - l_added + 1, l_added);

 /* }}} */

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 16:01:24 2020 UTC