[php-src] PR #19761: Fix GH-19752: Phar decompression with invalid extension can cause UAF
| From: | nielsdos | Date: | Mon, 08 Sep 2025 16:49:51 +0000 |
| Subject: | [php-src] PR #19761: Fix GH-19752: Phar decompression with invalid extension can cause UAF | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33142@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19761
Author: nielsdos
The rename code can error out prior to the reassignment of the filename, which is why the test
causes a crash.
The rename code can also error out at a later point, which means it will have already assigned the
new filename. We detect in which case we are in and act accordingly.