[php-src] PR #21353: Fix undefined behavior in php_stream_memory_seek()

From: Date: Fri, 06 Mar 2026 08:35:23 +0000
Subject: [php-src] PR #21353: Fix undefined behavior in php_stream_memory_seek()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35103@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21353 Author: lacatoire Fix signed integer overflow when negating offset in php_stream_memory_seek(). When offset == ZEND_LONG_MIN, (size_t)(-offset) is undefined behavior. Uses (size_t)0 - (size_t)offset to perform the negation in unsigned arithmetic.

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