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

==15627== Conditional jump or move depends on uninitialised value(s)
==15627==    at 0x4C2B310: memchr (vg_replace_strmem.c:887)
==15627==    by 0xE4F89D: lex_scan (zend_language_scanner.l:1757)
==15627==    by 0xEAC1D5: zendlex (zend_compile.c:6919)
==15627==    by 0xE401CF: zendparse (zend_language_parser.c:3742)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Conditional jump or move depends on uninitialised value(s)
==15627==    at 0xE4FC57: lex_scan (zend_language_scanner.l:1805)
==15627==    by 0xEAC1D5: zendlex (zend_compile.c:6919)
==15627==    by 0xE401CF: zendparse (zend_language_parser.c:3742)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Conditional jump or move depends on uninitialised value(s)
==15627==    at 0xE4FC74: lex_scan (zend_language_scanner.l:1805)
==15627==    by 0xEAC1D5: zendlex (zend_compile.c:6919)
==15627==    by 0xE401CF: zendparse (zend_language_parser.c:3742)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Use of uninitialised value of size 8
==15627==    at 0xF1D359: zend_new_interned_string_int (zend_string.c:97)
==15627==    by 0xE84E63: zend_insert_literal (zend_compile.c:343)
==15627==    by 0xE850AC: zend_add_literal (zend_compile.c:366)
==15627==    by 0xE89064: zend_do_echo (zend_compile.c:877)
==15627==    by 0xE413EE: zendparse (zend_language_parser.y:339)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Conditional jump or move depends on uninitialised value(s)
==15627==    at 0xF1D382: zend_new_interned_string_int (zend_string.c:99)
==15627==    by 0xE84E63: zend_insert_literal (zend_compile.c:343)
==15627==    by 0xE850AC: zend_add_literal (zend_compile.c:366)
==15627==    by 0xE89064: zend_do_echo (zend_compile.c:877)
==15627==    by 0xE413EE: zendparse (zend_language_parser.y:339)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Use of uninitialised value of size 8
==15627==    at 0xF1D57F: zend_new_interned_string_int (zend_string.c:133)
==15627==    by 0xE84E63: zend_insert_literal (zend_compile.c:343)
==15627==    by 0xE850AC: zend_add_literal (zend_compile.c:366)
==15627==    by 0xE89064: zend_do_echo (zend_compile.c:877)
==15627==    by 0xE413EE: zendparse (zend_language_parser.y:339)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Use of uninitialised value of size 8
==15627==    at 0xF1D6BA: zend_new_interned_string_int (zend_string.c:151)
==15627==    by 0xE84E63: zend_insert_literal (zend_compile.c:343)
==15627==    by 0xE850AC: zend_add_literal (zend_compile.c:366)
==15627==    by 0xE89064: zend_do_echo (zend_compile.c:877)
==15627==    by 0xE413EE: zendparse (zend_language_parser.y:339)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Conditional jump or move depends on uninitialised value(s)
==15627==    at 0xE4F744: lex_scan (zend_language_scanner.c:1082)
==15627==    by 0xEAC1D5: zendlex (zend_compile.c:6919)
==15627==    by 0xE401CF: zendparse (zend_language_parser.c:3742)
==15627==    by 0xE4D97C: compile_file (zend_language_scanner.l:586)
==15627==    by 0xA962D1: phar_compile_file (phar.c:3370)
==15627==    by 0xED848E: zend_execute_scripts (zend.c:1333)
==15627==    by 0xDF8342: php_execute_script (main.c:2613)
==15627==    by 0x1089EDC: do_cli (php_cli.c:998)
==15627==    by 0x108B7C1: main (php_cli.c:1382)
==15627== 
==15627== Syscall param write(buf) points to uninitialised byte(s)
==15627==    at 0xD4557D0: __write_nocancel (in /lib64/libc-2.12.so)
==15627==    by 0x1087926: sapi_cli_single_write (php_cli.c:277)
==15627==    by 0x1087AA3: sapi_cli_ub_write (php_cli.c:312)
==15627==    by 0xE1D308: php_output_op (output.c:1094)
==15627==    by 0xE1A172: php_output_write (output.c:270)
==15627==    by 0xDF659D: php_output_wrapper (main.c:1962)
==15627==    by 0xED503C: zend_print_zval_ex (zend.c:332)
==15627==    by 0xED4F28: zend_print_zval (zend.c:313)
==15627==    by 0xED3610: zend_print_variable (zend_variables.c:160)
==15627==    by 0xF4EFCB: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2409)
==15627==    by 0xF429F3: execute_ex (zend_vm_execute.h:363)
==15627==    by 0xF435CC: zend_execute (zend_vm_execute.h:388)
==15627==  Address 0x141b283c is 339,660 bytes inside a block of size 1,048,576 alloc'd
==15627==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==15627==    by 0xF1D095: zend_interned_strings_init (zend_string.c:48)
==15627==    by 0xED6167: zend_startup (zend.c:747)
==15627==    by 0xDF6A8E: php_module_startup (main.c:2149)
==15627==    by 0x1088065: php_cli_startup (php_cli.c:421)
==15627==    by 0x108B6C8: main (php_cli.c:1362)
==15627== 

 

Generated at Sat, 16 Jun 2018 07:21:59 +0000 (6 days ago)

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