php-src/ext/mysqlnd
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
..
config-win.h Sync AC_CHECK_SIZEOF m4 macro calls 2019-03-18 02:11:23 +01:00
config.w32 Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
config9.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
CREDITS
mysql_float_to_double.h Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTF 2019-02-23 22:26:47 +01:00
mysqlnd.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_alloc.c Fix ifdef position 2019-06-12 13:50:30 +02:00
mysqlnd_alloc.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_auth.c Fix typo in error message 2019-02-21 18:24:39 +01:00
mysqlnd_auth.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_block_alloc.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_block_alloc.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_charset.c Remove legacy AC_CHECK_TYPE calls for uint and ulong 2019-03-06 22:49:16 +01:00
mysqlnd_charset.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_commands.c Fix pointer signedness warning in mysqlnd 2019-04-11 14:14:21 +02:00
mysqlnd_commands.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_connection.c Remove always true condition 2019-06-12 13:17:25 +02:00
mysqlnd_connection.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_debug.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_debug.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_driver.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_enum_n_def.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_ext_plugin.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_ext_plugin.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_libmysql_compat.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_loaddata.c Merge branch 'PHP-7.3' into PHP-7.4 2019-05-22 12:45:25 +02:00
mysqlnd_net.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_plugin.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_plugin.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_portability.h Fix shift UB in sint4korr() 2019-06-19 15:09:00 +02:00
mysqlnd_priv.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_protocol_frame_codec.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_protocol_frame_codec.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_ps.c Merge branch 'PHP-7.3' into PHP-7.4 2019-02-12 11:03:55 +03:00
mysqlnd_ps.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_ps_codec.c Fix mysqlnd printf modifiers 2019-06-12 13:17:25 +02:00
mysqlnd_read_buffer.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_read_buffer.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_result.c Fix mysqlnd printf modifiers 2019-06-12 13:17:25 +02:00
mysqlnd_result.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_result_meta.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_result_meta.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_reverse_api.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_reverse_api.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_statistics.c Fix mysqlnd printf modifiers 2019-06-12 13:17:25 +02:00
mysqlnd_statistics.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_structs.h Remove legacy AC_CHECK_TYPE calls for uint and ulong 2019-03-06 22:49:16 +01:00
mysqlnd_vio.c Fix use-after-free in stream freeing during shutdown 2019-06-27 09:45:23 +02:00
mysqlnd_vio.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
mysqlnd_wireprotocol.c Merge branch 'PHP-7.3' into PHP-7.4 2019-06-21 16:33:01 +03:00
mysqlnd_wireprotocol.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
php_mysqlnd.c Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00
php_mysqlnd.h Update and fix remaining year ranges (2019) 2019-02-08 23:14:29 +01:00