]> granicus.if.org Git - php/commitdiff
avoid pointer truncation
authorAnatol Belski <ab@php.net>
Fri, 24 Jul 2015 19:30:53 +0000 (21:30 +0200)
committerAnatol Belski <ab@php.net>
Fri, 24 Jul 2015 19:51:29 +0000 (21:51 +0200)
sapi/phpdbg/phpdbg.c

index 0a84202509536e2fc42a2d2ccc499af128fb2af0..5f65c9f068bf257d6aaa4c06dd07b134ba648adf 100644 (file)
@@ -1951,7 +1951,7 @@ phpdbg_out:
                /* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */
                if (use_mm_wrappers) {
                        /* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */
-                       *(int *) mm_heap = 0;
+                       *(size_t *) mm_heap = 0;
                }
                zend_try {
                        php_request_shutdown(NULL);