mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix # 79171: heap-buffer-overflow in phar_extract_file
We must not access memory outside of the allocated buffer.
This commit is contained in:
parent
bbcb8cab8c
commit
b01b1f65e7
1 changed files with 1 additions and 1 deletions
|
@ -4184,7 +4184,7 @@ static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *
|
|||
if ('\\' == filename[cnt]) {
|
||||
filename[cnt] = '/';
|
||||
}
|
||||
} while (cnt++ <= filename_len);
|
||||
} while (cnt++ < filename_len);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue