PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/mbstring/tests/zend_multibyte-09.phpt ('zend multibyte (9)')

Script

1: <?php
2:
declare(encoding="EUC-JP");
3:
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
4: // back to UTF-8. There should be only a pair of consecutive bytes that is
5: // valid EUC-encoded character "鴻".
6:
var_dump(bin2hex("テスト"));
7:
?>
8:

Report

==24114== Conditional jump or move depends on uninitialised value(s)
==24114==    at 0x4C2B310: memchr (vg_replace_strmem.c:887)
==24114==    by 0xE4F909: lex_scan (zend_language_scanner.l:1757)
==24114==    by 0xEAC241: zendlex (zend_compile.c:6919)
==24114==    by 0xE4023B: zendparse (zend_language_parser.c:3742)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Conditional jump or move depends on uninitialised value(s)
==24114==    at 0xE4FCC3: lex_scan (zend_language_scanner.l:1805)
==24114==    by 0xEAC241: zendlex (zend_compile.c:6919)
==24114==    by 0xE4023B: zendparse (zend_language_parser.c:3742)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Conditional jump or move depends on uninitialised value(s)
==24114==    at 0xE4FCE0: lex_scan (zend_language_scanner.l:1805)
==24114==    by 0xEAC241: zendlex (zend_compile.c:6919)
==24114==    by 0xE4023B: zendparse (zend_language_parser.c:3742)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Use of uninitialised value of size 8
==24114==    at 0xF1D3C5: zend_new_interned_string_int (zend_string.c:97)
==24114==    by 0xE84ECF: zend_insert_literal (zend_compile.c:343)
==24114==    by 0xE85118: zend_add_literal (zend_compile.c:366)
==24114==    by 0xE890D0: zend_do_echo (zend_compile.c:877)
==24114==    by 0xE4145A: zendparse (zend_language_parser.y:339)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Conditional jump or move depends on uninitialised value(s)
==24114==    at 0xF1D3EE: zend_new_interned_string_int (zend_string.c:99)
==24114==    by 0xE84ECF: zend_insert_literal (zend_compile.c:343)
==24114==    by 0xE85118: zend_add_literal (zend_compile.c:366)
==24114==    by 0xE890D0: zend_do_echo (zend_compile.c:877)
==24114==    by 0xE4145A: zendparse (zend_language_parser.y:339)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Use of uninitialised value of size 8
==24114==    at 0xF1D5EB: zend_new_interned_string_int (zend_string.c:133)
==24114==    by 0xE84ECF: zend_insert_literal (zend_compile.c:343)
==24114==    by 0xE85118: zend_add_literal (zend_compile.c:366)
==24114==    by 0xE890D0: zend_do_echo (zend_compile.c:877)
==24114==    by 0xE4145A: zendparse (zend_language_parser.y:339)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Use of uninitialised value of size 8
==24114==    at 0xF1D726: zend_new_interned_string_int (zend_string.c:151)
==24114==    by 0xE84ECF: zend_insert_literal (zend_compile.c:343)
==24114==    by 0xE85118: zend_add_literal (zend_compile.c:366)
==24114==    by 0xE890D0: zend_do_echo (zend_compile.c:877)
==24114==    by 0xE4145A: zendparse (zend_language_parser.y:339)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Conditional jump or move depends on uninitialised value(s)
==24114==    at 0xE4F7B0: lex_scan (zend_language_scanner.c:1082)
==24114==    by 0xEAC241: zendlex (zend_compile.c:6919)
==24114==    by 0xE4023B: zendparse (zend_language_parser.c:3742)
==24114==    by 0xE4D9E8: compile_file (zend_language_scanner.l:586)
==24114==    by 0xA9633D: phar_compile_file (phar.c:3370)
==24114==    by 0xED84FA: zend_execute_scripts (zend.c:1333)
==24114==    by 0xDF83AE: php_execute_script (main.c:2613)
==24114==    by 0x1089F48: do_cli (php_cli.c:998)
==24114==    by 0x108B82D: main (php_cli.c:1382)
==24114== 
==24114== Syscall param write(buf) points to uninitialised byte(s)
==24114==    at 0xD455850: __write_nocancel (in /lib64/libc-2.12.so)
==24114==    by 0x1087992: sapi_cli_single_write (php_cli.c:277)
==24114==    by 0x1087B0F: sapi_cli_ub_write (php_cli.c:312)
==24114==    by 0xE1D374: php_output_op (output.c:1094)
==24114==    by 0xE1A1DE: php_output_write (output.c:270)
==24114==    by 0xDF6609: php_output_wrapper (main.c:1962)
==24114==    by 0xED50A8: zend_print_zval_ex (zend.c:332)
==24114==    by 0xED4F94: zend_print_zval (zend.c:313)
==24114==    by 0xED367C: zend_print_variable (zend_variables.c:160)
==24114==    by 0xF4F037: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2409)
==24114==    by 0xF42A5F: execute_ex (zend_vm_execute.h:363)
==24114==    by 0xF43638: zend_execute (zend_vm_execute.h:388)
==24114==  Address 0x141c183c is 339,660 bytes inside a block of size 1,048,576 alloc'd
==24114==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==24114==    by 0xF1D101: zend_interned_strings_init (zend_string.c:48)
==24114==    by 0xED61D3: zend_startup (zend.c:747)
==24114==    by 0xDF6AFA: php_module_startup (main.c:2149)
==24114==    by 0x10880D1: php_cli_startup (php_cli.c:421)
==24114==    by 0x108B734: main (php_cli.c:1362)
==24114== 

 

Generated at Mon, 24 Sep 2018 07:30:26 +0000 (29 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.