[php-src] PR #13840: Fix GH-13836: Renaming a file in a Phar to an already existing filename causes a NULL pointer dereference

From: Date: Sat, 30 Mar 2024 10:56:03 +0000
Subject: [php-src] PR #13840: Fix GH-13836: Renaming a file in a Phar to an already existing filename causes a NULL pointer dereference
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25574@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13840 Author: nielsdos If the destination already exists, then the add function on the manifest will return NULL, resulting in a NULL entry and therefore a NULL deref. As copy() (not Phar::copy) chooses to succeed and overwrite the destination if it already exists, we should do the same. Therefore the fix is as simple as changing add to update.

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