Valgrind Report for ext/interbase/tests/bug45575.phpt ('Bug #45575 (Segfault with invalid non-string as event handler callback)')
Script
1:
<?php 2: 3: require("interbase.inc"); 4: 5: $db = ibase_connect($test_base); 6: 7: function foobar($var) { var_dump($var); return true; } 8: 9: ibase_set_event_handler($db, null, 'TEST1'); 10: ibase_set_event_handler($db, 1, 'TEST1'); 11: ibase_set_event_handler('foobar', 'TEST1'); 12: 13: ?> 14:
Report
==2745== Invalid read of size 8
==2745== at 0x7796B4: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a7c0 is 0 bytes after a block of size 32 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x779708: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a798 is 8 bytes before a block of size 32 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x779716: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a790 is 16 bytes before a block of size 32 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x779724: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a788 is 24 bytes before a block of size 32 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0x77ACE1: zif_ibase_set_event_handler (ibase_events.c:345)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x779732: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a780 is not stack'd, malloc'd or (recently) free'd
==2745==
==2745== Invalid read of size 8
==2745== at 0x779740: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a778 is not stack'd, malloc'd or (recently) free'd
==2745==
==2745== Invalid read of size 8
==2745== at 0x77974E: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a770 is not stack'd, malloc'd or (recently) free'd
==2745==
==2745== Invalid read of size 8
==2745== at 0x77975C: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a768 is 16 bytes after a block of size 8 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2745== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x77976A: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a760 is 8 bytes after a block of size 8 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2745== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
==2745== Invalid read of size 8
==2745== at 0x77977F: _php_ibase_event_block (ibase_events.c:108)
==2745== by 0x77B116: zif_ibase_set_event_handler (ibase_events.c:356)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745== Address 0x14d8a758 is 0 bytes after a block of size 8 alloc'd
==2745== at 0x4C2794E: malloc (vg_replace_malloc.c:270)
==2745== by 0xD2A9DD: _emalloc (zend_alloc.c:2423)
==2745== by 0xD2ACD4: _safe_emalloc (zend_alloc.c:2539)
==2745== by 0x77ACB7: zif_ibase_set_event_handler (ibase_events.c:343)
==2745== by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==2745== by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==2745== by 0xDD33CC: execute (zend_vm_execute.h:410)
==2745== by 0xD77F06: zend_execute_scripts (zend.c:1315)
==2745== by 0xCAA557: php_execute_script (main.c:2494)
==2745== by 0xF45C87: do_cli (php_cli.c:988)
==2745== by 0xF472C4: main (php_cli.c:1364)
==2745==
Generated at Tue, 21 May 2013 17:04:51 +0000 (4 days ago)
|