Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/phar/phar.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,7 @@ zend_string* phar_fix_filepath(const char *path, size_t path_length, bool use_cw
size_t ptr_length;

if (use_cwd && PHAR_G(cwd_len) && path_length > 2 && path[0] == '.' && path[1] == '/') {
new_path = zend_string_alloc(path_length + path_length + 1, false);
new_path = zend_string_alloc(path_length + PHAR_G(cwd_len) + 1, false);
new_path_len = PHAR_G(cwd_len);
memcpy(ZSTR_VAL(new_path), PHAR_G(cwd), PHAR_G(cwd_len));
} else {
Expand Down
Loading