[php-src] PR #19038: Fix phar crash and file corruption with SplFileObject

From: Date: Sat, 05 Jul 2025 10:22:02 +0000
Subject: [php-src] PR #19038: Fix phar crash and file corruption with SplFileObject
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32326@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19038 Author: nielsdos There are two bugfixes here. The first was a crash that I discovered while working on GH-19035. The check for when a file pointer was still occupied was wrong, leading to a UAF. Strangely, zip got this right. The second issue was that even after fixing the first one, the file contents were garbage. This is because the file write offset for the phar stream was wrong.

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