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

Valgrind Report for ext/gmp/tests/serialize.phpt ('GMP serialization and unserialization')

Script

1: <?php
2:
3: var_dump
($n gmp_init(42));
4:
var_dump($s serialize($n));
5:
var_dump(unserialize($s));
6:
7:
$n gmp_init(13);
8:
$n->foo "bar";
9:
var_dump(unserialize(serialize($n)));
10:
11: try {
12:     
unserialize('C:3:"GMP":0:{}');
13: } catch (
Exception $e) { var_dump($e->getMessage()); }
14:
15: try {
16:     
unserialize('C:3:"GMP":8:{s:2:"42"}');
17: } catch (
Exception $e) { var_dump($e->getMessage()); }
18:
19:
?>
20:

Report

==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD3738A: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0x4C29C7A: memcpy (mc_replace_strmem.c:120)
==8874==    by 0xD37430: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0x4C29C9C: memcpy (mc_replace_strmem.c:883)
==8874==    by 0xD37430: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Use of uninitialised value of size 8
==8874==    at 0x4C29EFC: memcpy (mc_replace_strmem.c:883)
==8874==    by 0xD37430: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Use of uninitialised value of size 8
==8874==    at 0x4C29EFF: memcpy (mc_replace_strmem.c:883)
==8874==    by 0xD37430: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0x4C29F01: memcpy (mc_replace_strmem.c:883)
==8874==    by 0xD37430: php_var_serialize_intern (var.c:868)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD375D6: php_var_serialize_intern (var.c:869)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Use of uninitialised value of size 8
==8874==    at 0xD37679: php_var_serialize_intern (var.c:869)
==8874==    by 0xD396DA: php_var_serialize (var.c:976)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Use of uninitialised value of size 8
==8874==    at 0xD3970B: php_var_serialize (var.c:977)
==8874==    by 0xD398BC: zif_serialize (var.c:994)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xE982A8: php_output_op (output.c:1086)
==8874==    by 0xE94E2C: php_output_write (output.c:275)
==8874==    by 0xD25FFF: php_var_dump (var.c:130)
==8874==    by 0xD26D22: zif_var_dump (var.c:225)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0x1163AB0: sapi_cli_ub_write (php_cli.c:294)
==8874==    by 0xE98314: php_output_op (output.c:1093)
==8874==    by 0xE94E2C: php_output_write (output.c:275)
==8874==    by 0xD25FFF: php_var_dump (var.c:130)
==8874==    by 0xD26D22: zif_var_dump (var.c:225)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Use of uninitialised value of size 8
==8874==    at 0xAB046D: readline_shell_ub_write (readline_cli.c:105)
==8874==    by 0x1163B06: sapi_cli_ub_write (php_cli.c:300)
==8874==    by 0xE98314: php_output_op (output.c:1093)
==8874==    by 0xE94E2C: php_output_write (output.c:275)
==8874==    by 0xD25FFF: php_var_dump (var.c:130)
==8874==    by 0xD26D22: zif_var_dump (var.c:225)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0x1163BA2: sapi_cli_ub_write (php_cli.c:306)
==8874==    by 0xE98314: php_output_op (output.c:1093)
==8874==    by 0xE94E2C: php_output_write (output.c:275)
==8874==    by 0xD25FFF: php_var_dump (var.c:130)
==8874==    by 0xD26D22: zif_var_dump (var.c:225)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Syscall param write(count) contains uninitialised byte(s)
==8874==    at 0xA6CE490: __write_nocancel (in /lib64/libc-2.12.so)
==8874==    by 0x11639CF: sapi_cli_single_write (php_cli.c:273)
==8874==    by 0x1163B44: sapi_cli_ub_write (php_cli.c:308)
==8874==    by 0xE98314: php_output_op (output.c:1093)
==8874==    by 0xE94E2C: php_output_write (output.c:275)
==8874==    by 0xD25FFF: php_var_dump (var.c:130)
==8874==    by 0xD26D22: zif_var_dump (var.c:225)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD39C3D: zif_unserialize (var.c:1023)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD5BF1B: php_var_unserialize (var_unserializer.re:477)
==8874==    by 0xD39D85: zif_unserialize (var.c:1029)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD5C669: php_var_unserialize (var_unserializer.re:702)
==8874==    by 0xD39D85: zif_unserialize (var.c:1029)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 
==8874== Conditional jump or move depends on uninitialised value(s)
==8874==    at 0xD5B747: object_custom (var_unserializer.re:393)
==8874==    by 0xD5D4C0: php_var_unserialize (var_unserializer.re:801)
==8874==    by 0xD39D85: zif_unserialize (var.c:1029)
==8874==    by 0x100F494: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:593)
==8874==    by 0x100CCA9: execute_ex (zend_vm_execute.h:352)
==8874==    by 0x100D8E5: zend_execute (zend_vm_execute.h:381)
==8874==    by 0xF73DE7: zend_execute_scripts (zend.c:1345)
==8874==    by 0xE6FA7F: php_execute_script (main.c:2560)
==8874==    by 0x1166590: do_cli (php_cli.c:978)
==8874==    by 0x1167EB4: main (php_cli.c:1356)
==8874== 

 

Generated at Fri, 19 Sep 2014 17:11:23 +0000 (44 hours ago)

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