Bug #54322 [NEW]: Crash (null pointer) in zif_get_html_translation_table
From:
Operating system: Linux x86-64
PHP version: trunk-SVN-2011-03-20 (SVN)
Package: Reproducible crash
Bug Type: Bug
Bug description:Crash (null pointer) in zif_get_html_translation_table
Description:
------------
Attached code crashes on PHP trunk debug build (64 bit). Looks like a null
pointer deref, so I assume it's not security related.
Test script:
---------------
<?php
/* Prototype : array get_html_translation_table ( [int $table [, int
$quote_style [, string charset_hint]]] )
*/
$tt = get_html_translation_table(acos(1.01), $quote_style, "UTF-8");
?>
Expected result:
----------------
==23063== Invalid read of size 8
==23063== at 0x6AFEEE: zif_get_html_translation_table (html.c:1625)
==23063== by 0x7ED653: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:638)
==23063== by 0x7F37D2: ZEND_DO_FCALL_SPEC_CONST_HANDLER
(zend_vm_execute.h:1935)
==23063== by 0x7EC127: execute (zend_vm_execute.h:410)
==23063== by 0x7B0348: zend_execute_scripts (zend.c:1212)
==23063== by 0x726A6B: php_execute_script (main.c:2344)
==23063== by 0x8EC489: main (php_cli.c:1136)
==23063== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23063==
==23063==
==23063== Process terminating with default action of signal 11 (SIGSEGV)
--
Edit bug report at http://bugs.php.net/bug.php?id=54322&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54322&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54322&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54322&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54322&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54322&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54322&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54322&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54322&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54322&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54322&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54322&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54322&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54322&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54322&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54322&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54322&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54322&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54322&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54322&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54322&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54322&r=mysqlcfg
Thread (3 messages)
- decoder-php at own-hero dot net