php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30780 new tidyNode segfaults
Submitted: 2004-11-14 14:10 UTC Modified: 2004-11-14 14:40 UTC
From: nlopess@php.net Assigned:
Status: Closed Package: Tidy (PECL)
PHP Version: 5CVS-2004-11-14 (dev) OS: all
Private report: No CVE-ID: None
 [2004-11-14 14:10 UTC] nlopess@php.net
Description:
------------
PHP segfaults with supplied code;

Reproduce code:
---------------
<?
new tidyNode;
?>

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
tidy_object_free_storage (object=0x83da2cc) at /cvs/php-src/ext/tidy/tidy.c:500
500             intern->ptdoc->ref_count--;
(gdb) bt
#0  tidy_object_free_storage (object=0x83da2cc)
    at /cvs/php-src/ext/tidy/tidy.c:500
#1  0x0820755d in zend_objects_store_del_ref (zobject=0x1)
    at /cvs/php-src/Zend/zend_objects_API.c:159
#2  0x081f21e0 in _zval_dtor_func (zvalue=0x83e4b0c)
    at /cvs/php-src/Zend/zend_variables.c:52
#3  0x081e8de0 in _zval_ptr_dtor (zval_ptr=0x833fabc) at zend_variables.h:35
#4  0x082129ec in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffd560)
    at zend_vm_execute.h:241
#5  0x08212539 in execute (op_array=0x83e516c) at zend_vm_execute.h:58
#6  0x081f3d0a in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /cvs/php-src/Zend/zend.c:1053
#7  0x081bcaef in php_execute_script (primary_file=0xbffff940)
    at /cvs/php-src/main/main.c:1634
#8  0x0826d5b0 in main (argc=2, argv=0xbffff9d4)
    at /cvs/php-src/sapi/cli/php_cli.c:943

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-14 14:40 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 19:03:37 2021 UTC