mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix potential OOB when checking for trailing spaces
This commit is contained in:
commit
39f1d253b1
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ PHP_WINUTIL_API void php_win32_error_msg_free(char *msg)
|
|||
|
||||
int php_win32_check_trailing_space(const char * path, const size_t path_len)
|
||||
{/*{{{*/
|
||||
if (path_len > MAXPATHLEN - 1) {
|
||||
if (path_len == 0 || path_len > MAXPATHLEN - 1) {
|
||||
return 1;
|
||||
}
|
||||
if (path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue