[php-src] PR #20735: Fix GH-20732: Phar::LoadPhar undefined behavior when loading directory
| From: | ndossche | Date: | Fri, 19 Dec 2025 17:22:47 +0000 |
| Subject: | [php-src] PR #20735: Fix GH-20732: Phar::LoadPhar undefined behavior when loading directory | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34316@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20735
Author: ndossche
The size of
got was incorrect: it being unsigned means that the error return codes are
converted from -1 to SIZE_MAX. We should use ssize_t instead.