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

Valgrind Report for ext/openssl/tests/bug65538_002.phpt ('Bug #65538: SSL context "cafile" disallows URL stream wrappers')

Script

1: <?php
2: $clientCtx 
stream_context_create(['ssl' => [
3:     
// We don't get any ca list from php.net but it does not matter as we
4:     // care about the fact that the external stream is not allowed.
5:     // We can't use http://curl.haxx.se/ca/cacert.pem for this test
6:     // as it is redirected to https which means the test would depend
7:     // on system cafile when opening stream.
8:     
'cafile' => 'http://www.php.net',
9: ]]);
10:
file_get_contents('https://github.com'false$clientCtx);
11:
?>
12:

Report

==2332== Conditional jump or move depends on uninitialised value(s)
==2332==    at 0x504522: php_openssl_enable_crypto (xp_ssl.c:1880)
==2332==    by 0x5066C1: php_openssl_sockop_set_option (xp_ssl.c:2379)
==2332==    by 0xF3867A: _php_stream_set_option (streams.c:1350)
==2332==    by 0xF5249B: php_stream_xport_crypto_enable (transports.c:383)
==2332==    by 0x50683A: php_openssl_sockop_set_option (xp_ssl.c:2404)
==2332==    by 0xF3867A: _php_stream_set_option (streams.c:1350)
==2332==    by 0xF51EC9: php_stream_xport_connect (transports.c:244)
==2332==    by 0xF514F1: _php_stream_xport_create (transports.c:144)
==2332==    by 0xDEF213: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:220)
==2332==    by 0xDF9841: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:939)
==2332==    by 0xDF9DD6: php_stream_url_wrap_http (http_fopen_wrapper.c:993)
==2332==    by 0xF3BE7A: _php_stream_open_wrapper_ex (streams.c:2055)
==2332== 

 

Generated at Sun, 23 Feb 2020 16:49:06 +0000 (2 days ago)

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