php-src/main/streams
Nikita Popov 6bebe833a2 Fix use-after-free in stream freeing during shutdown
Streams will be freed in an unpredictable order during shutdown.
Ignore explicit calls to php_stream_close() entirely to avoid
use-after-free -- instead let the stream resource destructor
deal with it. We have to account for a few special cases:

 * Enclosed streams should be freed, as the resource destructor
   will forward to the enclosing stream.
 * Stream cookies also directly free streams, because we delegate
   to the cookie destruction if one exists.
 * Mysqlnd also directly frees streams, because it explicitly
   removes stream resources (because mysqlnd!)
2019-06-27 09:45:23 +02:00
..
cast.c Fix use-after-free in stream freeing during shutdown 2019-06-27 09:45:23 +02:00
filter.c Remove local variables 2019-02-03 21:03:00 +01:00
glob_wrapper.c Remove copy argument from php_glob_stream_get_path/pattern 2019-06-19 17:27:09 +02:00
memory.c Remove local variables 2019-02-03 21:03:00 +01:00
mmap.c Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_context.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_filter_api.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_glob_wrapper.h Remove copy argument from php_glob_stream_get_path/pattern 2019-06-19 17:27:09 +02:00
php_stream_mmap.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_plain_wrapper.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_transport.h Enable TLS 1.3 by default 2019-04-28 17:37:43 +01:00
php_stream_userspace.h Remove local variables 2019-02-03 21:03:00 +01:00
php_streams_int.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
plain_wrapper.c Use readdir() instead of readdir_r() 2019-04-11 16:52:36 +02:00
streams.c Fix use-after-free in stream freeing during shutdown 2019-06-27 09:45:23 +02:00
transports.c Remove local variables 2019-02-03 21:03:00 +01:00
userspace.c Allow exceptions in __toString() 2019-06-05 14:25:07 +02:00
xp_socket.c Remove local variables 2019-02-03 21:03:00 +01:00