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

==26436== Use of uninitialised value of size 8
==26436==    at 0xBDC1BD: php_bin2hex (string.c:143)
==26436==    by 0xBDC697: zif_bin2hex (string.c:253)
==26436==    by 0xE7289D: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:547)
==26436==    by 0xE7C8AD: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2326)
==26436==    by 0xE70468: execute_ex (zend_vm_execute.h:356)
==26436==    by 0xE70FFA: zend_execute (zend_vm_execute.h:381)
==26436==    by 0xE0E4F2: zend_execute_scripts (zend.c:1316)
==26436==    by 0xD31EFF: php_execute_script (main.c:2479)
==26436==    by 0xFF2EA4: do_cli (php_cli.c:993)
==26436==    by 0xFF4651: main (php_cli.c:1377)
==26436== 
==26436== Use of uninitialised value of size 8
==26436==    at 0xBDC1EE: php_bin2hex (string.c:144)
==26436==    by 0xBDC697: zif_bin2hex (string.c:253)
==26436==    by 0xE7289D: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:547)
==26436==    by 0xE7C8AD: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2326)
==26436==    by 0xE70468: execute_ex (zend_vm_execute.h:356)
==26436==    by 0xE70FFA: zend_execute (zend_vm_execute.h:381)
==26436==    by 0xE0E4F2: zend_execute_scripts (zend.c:1316)
==26436==    by 0xD31EFF: php_execute_script (main.c:2479)
==26436==    by 0xFF2EA4: do_cli (php_cli.c:993)
==26436==    by 0xFF4651: main (php_cli.c:1377)
==26436== 

 

Generated at Fri, 17 May 2013 23:23:52 +0000 (2 days ago)

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