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/streams_crypto_method.phpt ('Specific crypto method for ssl:// transports.')

Script

1: <?php
2: $serverCode 
= <<<'CODE'
3:
    $serverUri = "ssl://127.0.0.1:64321";
4:     $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
5:     $serverCtx = stream_context_create(['ssl' => [
6:         'local_cert' => __DIR__ . '/streams_crypto_method.pem',
7:     ]]);
8:
9:     $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
10:     phpt_notify();
11:
12:     $client = @stream_socket_accept($server);
13:     if ($client) {
14:         $in = '';
15:         while (!preg_match('/\r?\n\r?\n/', $in)) {
16:             $in .= fread($client, 2048);
17:         }
18:         $response = "HTTP/1.0 200 OK\r\n"
19:                   . "Content-Type: text/plain\r\n"
20:                   . "Content-Length: 12\r\n"
21:                   . "Connection: close\r\n"
22:                   . "\r\n"
23:                   . "Hello World!";
24:         fwrite($client, $response);
25:         fclose($client);
26:     }
27:
CODE;
28:
29:
$clientCode = <<<'CODE'
30:
    $serverUri = "https://127.0.0.1:64321/";
31:     $clientFlags = STREAM_CLIENT_CONNECT;
32:     $clientCtx = stream_context_create(['ssl' => [
33:         'crypto_method' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
34:         'verify_peer' => false,
35:         'verify_peer_name' => false
36:     ]]);
37:
38:     phpt_wait();
39:     echo file_get_contents($serverUri, false, $clientCtx);
40:
CODE;
41:
42: include 
'ServerClientTestCase.inc';
43:
ServerClientTestCase::getInstance()->run($clientCode$serverCode);
44:

Report

==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0x8AB36B3: ssl3_read_bytes (in /usr/lib64/libssl.so.1.0.1e)
==2285==    by 0x8AAEEBF: ??? (in /usr/lib64/libssl.so.1.0.1e)
==2285==    by 0x50AC04: php_openssl_sockop_io (xp_ssl.c:1814)
==2285==    by 0x50A883: php_openssl_sockop_read (xp_ssl.c:1741)
==2285==    by 0xF3825B: php_stream_fill_read_buffer (streams.c:689)
==2285==    by 0xF38FB7: _php_stream_get_line (streams.c:972)
==2285==    by 0xDE4C9F: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0x4C2A411: memchr (vg_replace_strmem.c:792)
==2285==    by 0xF38C7B: php_stream_locate_eol (streams.c:872)
==2285==    by 0xF38D9C: _php_stream_get_line (streams.c:919)
==2285==    by 0xDE4C9F: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==2285==    by 0xF38C7B: php_stream_locate_eol (streams.c:872)
==2285==    by 0xF38D9C: _php_stream_get_line (streams.c:919)
==2285==    by 0xDE4C9F: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285== 
==2285== Use of uninitialised value of size 8
==2285==    at 0xA631EC0: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631EE9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631EF1: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631F01: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631F0B: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631F49: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631F76: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631FCF: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631FF9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631FD8: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA631FDE: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Use of uninitialised value of size 8
==2285==    at 0xA631FB5: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xA632039: ____strtol_l_internal (in /lib64/libc-2.12.so)
==2285==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==2285==    by 0xDE4CEC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xDE4DFA: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:696)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285==    by 0x11C53C6: do_cli (php_cli.c:979)
==2285==    by 0x11C6E35: main (php_cli.c:1355)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xDE4E18: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:696)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285==    by 0x11C53C6: do_cli (php_cli.c:979)
==2285==    by 0x11C6E35: main (php_cli.c:1355)
==2285== 
==2285== Conditional jump or move depends on uninitialised value(s)
==2285==    at 0xDE4FFC: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:715)
==2285==    by 0xDE6D9D: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==2285==    by 0xF3E647: _php_stream_open_wrapper_ex (streams.c:2062)
==2285==    by 0xCFCC79: zif_file_get_contents (file.c:546)
==2285==    by 0xA89D17: phar_file_get_contents (func_interceptors.c:219)
==2285==    by 0x10B33EA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==2285==    by 0x10B00E4: execute_ex (zend_vm_execute.h:352)
==2285==    by 0x10B0D62: zend_execute (zend_vm_execute.h:381)
==2285==    by 0x1003E47: zend_execute_scripts (zend.c:1277)
==2285==    by 0xF09908: php_execute_script (main.c:2549)
==2285==    by 0x11C53C6: do_cli (php_cli.c:979)
==2285==    by 0x11C6E35: main (php_cli.c:1355)
==2285== 

 

Generated at Sun, 29 Mar 2015 03:46:05 +0000 (3 days ago)

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