Bug #67873 [NEW]: Segfaults in php_wddx_serialize_var
| From: | remi@php.net | Date: | Wed, 20 Aug 2014 12:58:36 +0000 |
| Subject: | Bug #67873 [NEW]: Segfaults in php_wddx_serialize_var | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187197@lists.php.net to get a copy of this message | ||
From: remi
Operating system: RHEL-7
PHP version: 5.4.31
Package: WDDX related
Bug Type: Bug
Bug description:Segfaults in php_wddx_serialize_var
Description:
------------
Segfaults occurs running Zend Framework test suite on RHEL-7 (buld with
-fstack-protector-strong)
Already fixed in 5.5+
http://git.php.net/?p=php-src.git;a=patch;h=95ea1e7ca787537a93c25c401dba010d51aa8d59
Test script:
---------------
phpunit ZendTest/Serializer/Adapter/WddxTest.php
Expected result:
----------------
no segfault
Actual result:
--------------
(gdb) bt
#0 0x00007ffff4728989 in raise () from /lib64/libc.so.6
#1 0x00007ffff472a098 in abort () from /lib64/libc.so.6
#2 0x00007ffff4769197 in __libc_message () from /lib64/libc.so.6
#3 0x00007ffff4800cb7 in __fortify_fail () from /lib64/libc.so.6
#4 0x00007ffff4800c80 in __stack_chk_fail () from /lib64/libc.so.6
#5 0x00007fffe1d1c667 in php_wddx_serialize_var
(packet=packet@entry=0x5555563e3a10, var=<optimized out>,
name=name@entry=0x0, name_len=name_len@entry=0)
at /usr/src/debug/php-5.4.16/ext/wddx/wddx.c:687
#6 0x00007fffe1d1e0f4 in zif_wddx_serialize_value (ht=<optimized out>,
return_value=0x5555563e19c0, return_value_ptr=<optimized out>,
this_ptr=<optimized out>, return_value_used=<optimized out>) at
/usr/src/debug/php-5.4.16/ext/wddx/wddx.c:1173
--
Edit bug report at https://bugs.php.net/bug.php?id=67873&edit=1
--