[php-src] PR #11619: Fix GH-11242: Use dynamic buffer for large length in stream mem copy
| From: | bukka | Date: | Fri, 07 Jul 2023 14:54:15 +0000 |
| Subject: | [php-src] PR #11619: Fix GH-11242: Use dynamic buffer for large length in stream mem copy | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22932@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11619
Author: bukka
This prevents allocating buffer of the supplied
length, if it is larger than 32KB so it
is possible to set maximum length that is way larger than the actual content that will be provided
as request in GH-11242. It should still allocate larger buffer where the stat size is working (e.g.
files). It will likely result in more reallocation for network transfer but it should use less
memory. This applies only if lengths parameter is supplied. Functionality without
length should not be impacted.