com php-src: Merge branch 'PHP-5.6': ext/phar/phar_internal .h ext/phar/tar.c
| From: | Xinchen Hui | Date: | Mon, 30 Mar 2015 12:20:55 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6': ext/phar/phar_internal .h ext/phar/tar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85937@lists.php.net to get a copy of this message | ||
Commit: ab4f120c6a3594cc1257eaae9fd22a6a84613b02
Author: Xinchen Hui <laruence@gmail.com> Mon, 30 Mar 2015 20:20:55 +0800
Parents: 3ad9ff197df21bb375a0c804964330b185fdd821 3a660bf3a5a73c10e05eccfcdf26d978f585f0af
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ab4f120c6a3594cc1257eaae9fd22a6a84613b02
Log:
Merge branch 'PHP-5.6'
Conflicts:
NEWS
ext/opcache/Optimizer/pass1_5.c
Changed paths:
MM ext/phar/phar_internal.h
MM ext/phar/tar.c
Diff:
diff --cc ext/phar/tar.c
index cab6455,42b5168..9c72b27
--- a/ext/phar/tar.c
+++ b/ext/phar/tar.c
@@@ -255,8 -255,14 +255,14 @@@ int phar_parse_tarfile(php_stream* fp,
size = entry.uncompressed_filesize = entry.compressed_filesize =
phar_tar_number(hdr->size, sizeof(hdr->size));
+ /* skip global/file headers (pax) */
+ if (!old && (hdr->typeflag == TAR_GLOBAL_HDR || hdr->typeflag == TAR_FILE_HDR)) {
+ size = (size+511)&~511;
+ goto next;
+ }
+
if (((!old && hdr->prefix[0] == 0) || old) && strlen(hdr->name) ==
sizeof(".phar/signature.bin")-1 && !strncmp(hdr->name,
".phar/signature.bin", sizeof(".phar/signature.bin")-1)) {
- off_t curloc;
+ zend_off_t curloc;
if (size > 511) {
if (error) {