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
==6542== Use of uninitialised value of size 8
==6542== at 0xB88098: php_bin2hex (string.c:137)
==6542== by 0xB88264: zif_bin2hex (string.c:207)
==6542== by 0xDB8BD2: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==6542== by 0xDBEEB1: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:1632)
==6542== by 0xDB7C17: execute (zend_vm_execute.h:107)
==6542== by 0xD6B0B7: zend_execute_scripts (zend.c:1259)
==6542== by 0xCB7000: php_execute_script (main.c:2316)
==6542== by 0xEAE410: main (php_cli.c:1189)
==6542==
==6542== Use of uninitialised value of size 8
==6542== at 0xB880C5: php_bin2hex (string.c:138)
==6542== by 0xB88264: zif_bin2hex (string.c:207)
==6542== by 0xDB8BD2: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==6542== by 0xDBEEB1: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:1632)
==6542== by 0xDB7C17: execute (zend_vm_execute.h:107)
==6542== by 0xD6B0B7: zend_execute_scripts (zend.c:1259)
==6542== by 0xCB7000: php_execute_script (main.c:2316)
==6542== by 0xEAE410: main (php_cli.c:1189)
==6542==
Generated at Sun, 19 May 2013 20:27:25 +0000 (2 hours ago)
|