[php-src] PR #25865: Fix GH-25862: Heap overflow when a read filter grows the chunk size

From: Date: Sat, 28 Nov 2026 06:02:43 +0000
Subject: [php-src] PR #25865: Fix GH-25862: Heap overflow when a read filter grows the chunk size
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41147@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25865 Author: lazerg Fixes GH-25862. _php_stream_fill_read_buffer() allocates chunk_buf with the stream's chunk size once, but then reads stream->chunk_size bytes into it on every loop iteration. A user filter can call stream_set_chunk_size() and return PSFS_FEED_ME, so the next read writes past the end of the buffer. The chunk size is now read once and used for both the allocation and the reads.

« previous php.git-pulls (#41147) next »