PHP  
 PHP_5_4
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

==14802== Use of uninitialised value of size 8
==14802==    at 0xB61664: php_bin2hex (string.c:143)
==14802==    by 0xB61B37: zif_bin2hex (string.c:253)
==14802==    by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==14802==    by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==14802==    by 0xDD33CC: execute (zend_vm_execute.h:410)
==14802==    by 0xD77F06: zend_execute_scripts (zend.c:1315)
==14802==    by 0xCAA557: php_execute_script (main.c:2494)
==14802==    by 0xF45C87: do_cli (php_cli.c:988)
==14802==    by 0xF472C4: main (php_cli.c:1364)
==14802== 
==14802== Use of uninitialised value of size 8
==14802==    at 0xB61691: php_bin2hex (string.c:144)
==14802==    by 0xB61B37: zif_bin2hex (string.c:253)
==14802==    by 0xDD5282: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:643)
==14802==    by 0xDDF324: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2225)
==14802==    by 0xDD33CC: execute (zend_vm_execute.h:410)
==14802==    by 0xD77F06: zend_execute_scripts (zend.c:1315)
==14802==    by 0xCAA557: php_execute_script (main.c:2494)
==14802==    by 0xF45C87: do_cli (php_cli.c:988)
==14802==    by 0xF472C4: main (php_cli.c:1364)
==14802== 

 

Generated at Tue, 21 May 2013 17:04:51 +0000 (4 days ago)

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