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

==1869== Conditional jump or move depends on uninitialised value(s)
==1869==    at 0x504522: php_openssl_enable_crypto (xp_ssl.c:1880)
==1869==    by 0x5066C1: php_openssl_sockop_set_option (xp_ssl.c:2379)
==1869==    by 0xF38658: _php_stream_set_option (streams.c:1350)
==1869==    by 0xF52479: php_stream_xport_crypto_enable (transports.c:383)
==1869==    by 0x50683A: php_openssl_sockop_set_option (xp_ssl.c:2404)
==1869==    by 0xF38658: _php_stream_set_option (streams.c:1350)
==1869==    by 0xF51EA7: php_stream_xport_connect (transports.c:244)
==1869==    by 0xF514CF: _php_stream_xport_create (transports.c:144)
==1869==    by 0xDEF1F1: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:220)
==1869==    by 0xDF981F: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:939)
==1869==    by 0xDF9DB4: php_stream_url_wrap_http (http_fopen_wrapper.c:993)
==1869==    by 0xF3BE58: _php_stream_open_wrapper_ex (streams.c:2055)
==1869== 

 

Generated at Sun, 15 Sep 2019 23:58:39 +0000 (37 hours ago)

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