[php-src] PR #13241: Fix GH-10344: imagettfbbox(): Could not find/open font UNC path
| From: | nielsdos | Date: | Wed, 24 Jan 2024 21:55:36 +0000 |
| Subject: | [php-src] PR #13241: Fix GH-10344: imagettfbbox(): Could not find/open font UNC path | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24890@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13241
Author: nielsdos
libgd uses an incorrect absolute path check in gdft.c. It checks if either the path starts with a
'/' (only valid on Posix btw), or whether it contains something of the form C:\ or C:/.
However, this overlooks the possibility of using UNC paths on Windows. As we already do PHP-specific
stuff with VCWD_ macros, use IS_ABSOLUTE_PATH to check for an absolute path which will take into
account UNC paths as well.