Skip to content

Commit

Permalink
Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 19, 2013
1 parent 3624a9c commit 20eb8e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -31,6 +31,9 @@ PHP NEWS
. Fixed bug #49634 (Segfault throwing an exception in a XSL registered
function). (Mike)

- ZIP:
. Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real). (Remi)

12 Dec 2013, PHP 5.4.23

- Core:
Expand Down
2 changes: 1 addition & 1 deletion ext/zip/php_zip.c
Expand Up @@ -1537,7 +1537,7 @@ static ZIPARCHIVE_METHOD(open)
RETURN_LONG((long)err);
}
ze_obj->filename = estrdup(resolved_path);
ze_obj->filename_len = filename_len;
ze_obj->filename_len = strlen(resolved_path);
ze_obj->za = intern;
RETURN_TRUE;
}
Expand Down

0 comments on commit 20eb8e4

Please sign in to comment.