[php-src] PR #15648: Fix GH-15628: php_stream_memory_get_buffer() not zero-terminated
| From: | cmb69 | Date: | Thu, 29 Aug 2024 22:38:34 +0000 |
| Subject: | [php-src] PR #15648: Fix GH-15628: php_stream_memory_get_buffer() not zero-terminated | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28285@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15648
Author: cmb69
We're reasonably sure that appending the NUL is not an OOB write, since the memory stream
implementation uses
zend_string APIs instead of fiddling with the buffer.
We don't add a regression test because that would require to set up something in the zend_test
extension, and regressions are supposed to be caught by external consumers of this API, such as
mailparse.