php-src/main
Adam Seitz 70dfbe0068 Fix #80384: limit read buffer size
In the case of a stream with no filters, php_stream_fill_read_buffer
only reads stream->chunk_size into the read buffer. If the stream has
filters attached, it could unnecessarily buffer a large amount of data.

With this change, php_stream_fill_read_buffer only proceeds until either
the requested size or stream->chunk_size is available in the read buffer.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-6444.
2020-12-23 13:49:56 +01:00
..
streams Fix #80384: limit read buffer size 2020-12-23 13:49:56 +01:00
alloca.c Remove local variables 2019-02-03 21:03:00 +01:00
build-defs.h.in Remove unused build specific symbols 2019-06-30 23:55:03 +02:00
explicit_bzero.c Remove local variables 2019-02-03 21:03:00 +01:00
fastcgi.c Merge branch 'PHP-7.3' into PHP-7.4 2019-08-30 16:07:54 +02:00
fastcgi.h Remove local variables 2019-02-03 21:03:00 +01:00
fopen_wrappers.c Make url_stats in resolve_path quiet 2019-12-30 23:22:26 +01:00
fopen_wrappers.h Remove local variables 2019-02-03 21:03:00 +01:00
getopt.c Merge branch 'PHP-7.3' into PHP-7.4 2020-01-27 13:32:38 +01:00
http_status_codes.h Remove local variables 2019-02-03 21:03:00 +01:00
internal_functions_win32.c Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols 2019-06-27 23:25:33 +02:00
internal_functions.c.in [ci skip] Remove text editor modelines 2019-03-23 21:09:38 +01:00
main.c Check compatibility with proper runtime DLL 2020-05-14 15:57:55 +02:00
mergesort.c Remove local variables 2019-02-03 21:03:00 +01:00
network.c Merge branch 'PHP-7.3' into PHP-7.4 2020-09-11 14:46:51 +02:00
output.c Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c 2019-03-12 17:35:50 +03:00
php_compat.h Remove local variables 2019-02-03 21:03:00 +01:00
php_content_types.c Remove local variables 2019-02-03 21:03:00 +01:00
php_content_types.h Remove local variables 2019-02-03 21:03:00 +01:00
php_getopt.h Merge branch 'PHP-7.3' into PHP-7.4 2020-01-27 13:32:38 +01:00
php_globals.h Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc. 2019-03-14 03:01:01 +03:00
php_ini.c Fix signature and calls 2019-08-27 14:34:35 +02:00
php_ini.h Remove local variables 2019-02-03 21:03:00 +01:00
php_main.h Remove unused (module|request)_shutdown_for_exec 2019-07-02 10:10:51 +02:00
php_memory_streams.h Remove local variables 2019-02-03 21:03:00 +01:00
php_network.h Remove local variables 2019-02-03 21:03:00 +01:00
php_open_temporary_file.c Remove local variables 2019-02-03 21:03:00 +01:00
php_open_temporary_file.h Remove local variables 2019-02-03 21:03:00 +01:00
php_output.h Remove local variables 2019-02-03 21:03:00 +01:00
php_reentrancy.h Use readdir() instead of readdir_r() 2019-04-11 16:52:36 +02:00
php_scandir.c Use readdir() instead of readdir_r() 2019-04-11 16:52:36 +02:00
php_scandir.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stdint.h Remove local variables 2019-02-03 21:03:00 +01:00
php_streams.h Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
php_syslog.c Merge branch 'PHP-7.3' into PHP-7.4 2019-06-17 13:14:18 +02:00
php_syslog.h Merge branch 'PHP-7.3' into PHP-7.4 2019-06-17 13:14:18 +02:00
php_ticks.c Remove local variables 2019-02-03 21:03:00 +01:00
php_ticks.h Remove local variables 2019-02-03 21:03:00 +01:00
php_variables.c Merge branch 'PHP-7.3' into PHP-7.4 2020-09-28 22:54:57 -07:00
php_variables.h Remove local variables 2019-02-03 21:03:00 +01:00
php_version.h Update version in 7.4 branch 2020-11-07 18:48:13 +00:00
php.h Update PHP_API_VERSION 2019-09-02 19:02:40 +03:00
reentrancy.c Merge branch 'PHP-7.3' into PHP-7.4 2020-06-29 17:46:46 +02:00
rfc1867.c Merge branch 'PHP-7.3' into PHP-7.4 2020-05-11 14:20:47 -07:00
rfc1867.h Remove local variables 2019-02-03 21:03:00 +01:00
SAPI.c Remove HAVE_PCRE/HAVE_BUNDLED_PCRE checks 2019-03-22 10:29:18 +01:00
SAPI.h Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc. 2019-03-14 03:01:01 +03:00
snprintf.c Fix unused value warnings in snprintf.c 2019-06-12 13:17:25 +02:00
snprintf.h Sync AC_CHECK_SIZEOF m4 macro calls 2019-03-18 02:11:23 +01:00
spprintf.c Remove checks for locale.h, setlocale, localeconv 2019-04-07 18:32:54 +02:00
spprintf.h Remove unused PHP_AC_BROKEN_SNPRINTF m4 macro 2019-02-27 21:20:30 +01:00
strlcat.c Remove local variables 2019-02-03 21:03:00 +01:00
strlcpy.c Remove local variables 2019-02-03 21:03:00 +01:00