|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-16 03:20 UTC] anton at samba dot org
[2008-10-16 05:54 UTC] anton at samba dot org
[2008-10-16 09:35 UTC] johannes@php.net
[2010-07-25 02:17 UTC] mabi at gentoo dot org
[2013-03-19 18:51 UTC] olemarkus@php.net
[2013-03-19 19:24 UTC] dmitry@php.net
[2013-08-22 07:34 UTC] olemarkus@php.net
[2013-08-22 09:06 UTC] nikic@php.net
[2013-08-22 09:06 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2013-08-22 09:10 UTC] nikic@php.net
[2013-11-17 09:30 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ A recent checkout of gcc4.4 miscompiles php on PowerPC64. The following function reads from p via long * and stores to p via void * which violates aliasing rules: static inline void zend_ptr_stack_clear_multiple(TSRMLS_D) { void **p = EG(argument_stack).top_element-2; int delete_count = (int)(zend_uintptr_t) *p; EG(argument_stack).top -= (delete_count+2); while (--delete_count>=0) { zval *q = *(zval **)(--p); *p = NULL; zval_ptr_dtor(&q); } EG(argument_stack).top_element = p; } More details can be found at: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37824 We can remove the (zval **) cast so that we read and write via void *p and fix the aliasing issue. I will attach a patch.