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

Valgrind Report for ext/openssl/tests/openssl_random_pseudo_bytes.phpt ('openssl_random_pseudo_bytes() tests')

Script

1: <?php
2:
for ($i 0$i 10$i++) {
3:     
var_dump(bin2hex(openssl_random_pseudo_bytes($i$strong)));
4: }
5:
6:
?>
7:

Report

==3959== Use of uninitialised value of size 8
==3959==    at 0xBDB561: php_bin2hex (string.c:143)
==3959==    by 0xBDBA3B: zif_bin2hex (string.c:253)
==3959==    by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==3959==    by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==3959==    by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==3959==    by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==3959==    by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==3959==    by 0xD312C7: php_execute_script (main.c:2481)
==3959==    by 0xFF21A4: do_cli (php_cli.c:993)
==3959==    by 0xFF3951: main (php_cli.c:1377)
==3959== 
==3959== Use of uninitialised value of size 8
==3959==    at 0xBDB592: php_bin2hex (string.c:144)
==3959==    by 0xBDBA3B: zif_bin2hex (string.c:253)
==3959==    by 0xE71B9B: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:543)
==3959==    by 0xE7BBAB: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2322)
==3959==    by 0xE6F7D8: execute_ex (zend_vm_execute.h:356)
==3959==    by 0xE7036A: zend_execute (zend_vm_execute.h:381)
==3959==    by 0xE0D7B2: zend_execute_scripts (zend.c:1316)
==3959==    by 0xD312C7: php_execute_script (main.c:2481)
==3959==    by 0xFF21A4: do_cli (php_cli.c:993)
==3959==    by 0xFF3951: main (php_cli.c:1377)
==3959== 

 

Generated at Sat, 08 Jun 2013 10:22:27 +0000 (10 days ago)

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