]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
11 years agoPrevent unnecessary linking against deflate code 73/head
Paul Barker [Thu, 6 Feb 2014 21:20:06 +0000 (21:20 +0000)] 
Prevent unnecessary linking against deflate code

In _archive_write_disk_free, the call to deflateEnd was compiled if HAVE_ZLIB_H
was defined. However, all other calls to deflate functions were only compiled
if __APPLE__, UF_COMPRESSED and HAVE_SYS_XATTR_H were also defined. So if one of
these macros was not defined but HAVE_ZLIB_H was defined, the call the
deflateEnd would be unnecessary as deflateInit could never have been called.

In statically linked applications which don't use deflate functions elsewhere
this was causing unnecessary linking of the deflate code from zlib, adding at
least 20k of object code to the final executable size.

This patch fixes the above issue by surrounding the call to deflateEnd with the
same conditional compilation checks as surround the call to deflateInit.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoMerge pull request #71 from betafive/pbarker/extract
Tim Kientzle [Sun, 6 Apr 2014 17:47:11 +0000 (10:47 -0700)] 
Merge pull request #71 from betafive/pbarker/extract

Split archive_read_extract.c into two source files

11 years agoSplit archive_read_extract2 from archive_read_extract 71/head
Paul Barker [Sun, 6 Apr 2014 14:48:24 +0000 (15:48 +0100)] 
Split archive_read_extract2 from archive_read_extract

The function archive_read_extract requires a call to
archive_write_disk_set_standard_lookup but the functions archive_read_extract2
and archive_read_extract_set_progress_callback do not. Therefore, the latter
pair of functions, the internal function __archive_read_get_extract and the
static function copy_data are moved out of archive_read_extract.c into the new
file archive_read_extract2.c.

This ensures that when statically linking, the standard user and group lookup
functions will not be linked into a program unless they are really needed.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoRefactor archive_read_extract
Paul Barker [Sun, 6 Apr 2014 13:37:03 +0000 (14:37 +0100)] 
Refactor archive_read_extract

The initialisation of the archive_write_disk object and the call to
archive_write_disk_set_standard_lookup are only needed in the
archive_read_extract function, not in archive_read_extract2 or other related
functions. Therefore this initialisation is merged into archive_read_extract.

The static function get_extract is renamed to __archive_read_get_extract so that
is can be made non-static. The struct extract is renamed to archive_read_extract
so that it can be placed in a header file without risk of namespace clashes.
Both these declarations are then moved to the archive_read_private.h header.
This preparation is necessary so that the contents of archive_read_extract.c can
be split between two source files.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoMerge pull request #68 from guidefloripa/master
Tim Kientzle [Tue, 18 Mar 2014 03:43:07 +0000 (20:43 -0700)] 
Merge pull request #68 from guidefloripa/master

Fix memory leak for 7zip/xz

11 years agoUpdate xz compatibility for reading xz. 68/head
Guilherme Steinmann [Mon, 17 Mar 2014 13:10:55 +0000 (10:10 -0300)] 
Update xz compatibility for reading xz.

11 years agoUpdate xz compatibility for reading 7zip.
Guilherme Steinmann [Mon, 17 Mar 2014 13:01:59 +0000 (10:01 -0300)] 
Update xz compatibility for reading 7zip.

11 years agoMerge pull request #63 from sergiud/master
Tim Kientzle [Sun, 16 Mar 2014 17:27:20 +0000 (10:27 -0700)] 
Merge pull request #63 from sergiud/master

Do not redefine _WIN32_WINNT and WINVER

11 years agoMerge pull request #61 from kevinoid/ignore_zeros
Tim Kientzle [Sun, 16 Mar 2014 17:25:49 +0000 (10:25 -0700)] 
Merge pull request #61 from kevinoid/ignore_zeros

Add --ignore-zeros option to bsdtar

11 years agoMerge pull request #55 from NiLuJe/cmake-pkgconfig
Tim Kientzle [Sun, 16 Mar 2014 17:23:20 +0000 (10:23 -0700)] 
Merge pull request #55 from NiLuJe/cmake-pkgconfig

Make the CMake build more pkg-config friendly

11 years agoMerge pull request #67 from jmalak/master
Tim Kientzle [Sun, 16 Mar 2014 17:20:45 +0000 (10:20 -0700)] 
Merge pull request #67 from jmalak/master

fixes to build by Open Watcom toolchain

11 years agofixes for test programs to be buildable by Open Watcom 67/head
Jiri Malak [Wed, 12 Mar 2014 07:50:51 +0000 (08:50 +0100)] 
fixes for test programs to be buildable by Open Watcom

correct buffers to be realy local for each test as expected by logic

11 years agorest of changes to be buildable by Open Watcom
Jiri Malak [Wed, 12 Mar 2014 07:02:37 +0000 (08:02 +0100)] 
rest of changes to be buildable by Open Watcom

11 years agofixes to build by Open Watcom toolchain
Jiri Malak [Wed, 12 Mar 2014 06:32:22 +0000 (07:32 +0100)] 
fixes to build by Open Watcom toolchain

11 years agoMerge pull request #65 from Bluewind/working
Tim Kientzle [Sun, 2 Mar 2014 17:20:46 +0000 (09:20 -0800)] 
Merge pull request #65 from Bluewind/working

mtree: Make reading additional information from the fs optional

11 years agomtree: Make reading additional information from the fs optional 65/head
Florian Pritz [Sat, 1 Mar 2014 16:21:47 +0000 (17:21 +0100)] 
mtree: Make reading additional information from the fs optional

This feature is not needed if users just want to read in the content of
an mtree file and do validation against the file system themselves.

It is needed for `bsdtar cvf out.tar @input.mtree` which is why the
option is enabled in bsdtar.

Since the mtree tests rely on this feature, this patch also enables it
there.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
11 years agoReturn correct error when multiple modules match an option spec
Tim Kientzle [Sun, 23 Feb 2014 17:34:43 +0000 (09:34 -0800)] 
Return correct error when multiple modules match an option spec

11 years agostreaming zip reader does not support mac extensions
Tim Kientzle [Sun, 23 Feb 2014 17:33:44 +0000 (09:33 -0800)] 
streaming zip reader does not support mac extensions

11 years agoEnable mac extensions for mac extension test
Tim Kientzle [Sun, 23 Feb 2014 17:17:22 +0000 (09:17 -0800)] 
Enable mac extensions for mac extension test

11 years agoFix: process directory entries even when mac extensions are turned off
Tim Kientzle [Sun, 23 Feb 2014 17:16:34 +0000 (09:16 -0800)] 
Fix: process directory entries even when mac extensions are turned off

11 years agoZip: Make Mac extension handling optional with "mac-ext" option for Zip, default...
Tim Kientzle [Sun, 23 Feb 2014 16:49:02 +0000 (08:49 -0800)] 
Zip: Make Mac extension handling optional with "mac-ext" option for Zip, default true on Mac OS"

11 years agoMerge remote-tracking branch 'upstream/master' into cmake-pkgconfig 55/head
NiLuJe [Sun, 16 Feb 2014 18:53:01 +0000 (19:53 +0100)] 
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig

11 years agoMerge pull request #64 from NiLuJe/fix-warning
Tim Kientzle [Sun, 16 Feb 2014 18:48:15 +0000 (10:48 -0800)] 
Merge pull request #64 from NiLuJe/fix-warning

Fix a couple of minor warnings.

11 years agoDo not redefine _WIN32_WINNT and WINVER 63/head
Sergiu Dotenco [Mon, 27 Jan 2014 13:51:10 +0000 (14:51 +0100)] 
Do not redefine _WIN32_WINNT and WINVER

11 years agoFix a couple of minor warnings. 64/head
NiLuJe [Sat, 25 Jan 2014 00:24:24 +0000 (01:24 +0100)] 
Fix a couple of minor warnings.

Just so that the build passes w/ -Werror

11 years agoMerge remote-tracking branch 'upstream/master' into cmake-pkgconfig
NiLuJe [Fri, 24 Jan 2014 21:34:52 +0000 (22:34 +0100)] 
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig

11 years agoMake the backslash line continuations more consistent for automatic updating; update...
Tim Kientzle [Fri, 17 Jan 2014 04:12:49 +0000 (20:12 -0800)] 
Make the backslash line continuations more consistent for automatic updating; update the libarchive test data

11 years agoFix the zip tests that were inadvertently disabled (and hence broken).
Tim Kientzle [Fri, 17 Jan 2014 04:02:05 +0000 (20:02 -0800)] 
Fix the zip tests that were inadvertently disabled (and hence broken).

Extend them to verify with/without forcing zip64 and with/without 'el' extension.

11 years agoInclude missing test in cmake build, sort the file list.
Tim Kientzle [Fri, 17 Jan 2014 04:01:44 +0000 (20:01 -0800)] 
Include missing test in cmake build, sort the file list.

11 years agoInclude tests for new zip64 functionality in autoconf-based build.
Tim Kientzle [Fri, 17 Jan 2014 04:01:17 +0000 (20:01 -0800)] 
Include tests for new zip64 functionality in autoconf-based build.

11 years agoFix out-of-tree build
Paul Barker [Thu, 16 Jan 2014 15:16:31 +0000 (15:16 +0000)] 
Fix out-of-tree build

When building outside the source tree, the directories 'libarchive/test',
'tar/test' and 'cpio/test' need to be created before the commands in Makefile.am
are executed which create list.h files in these directories.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
11 years agoMerge pull request #62 from kientzle/master
Tim Kientzle [Thu, 16 Jan 2014 15:50:50 +0000 (07:50 -0800)] 
Merge pull request #62 from kientzle/master

Zip64 refactoring

11 years agoAdd --ignore-zeros option to bsdtar 61/head
Kevin Locke [Wed, 15 Jan 2014 03:05:40 +0000 (20:05 -0700)] 
Add --ignore-zeros option to bsdtar

This option is an alias for --options read_concatenated_archive
introduced for compatibility with GNU tar.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
11 years agoDo not require LibXml2 to configure
Brad King [Mon, 13 Jan 2014 14:36:15 +0000 (09:36 -0500)] 
Do not require LibXml2 to configure

In commit 033fc31e (Allow fine grained control over dependancies,
2013-05-16, committed 2013-12-12) the find_package(LibXml2) line was
accidentally given a REQUIRED specifier.  Remove it now.

11 years agoMerge pull request #59 from NiLuJe/fix-warning
Tim Kientzle [Mon, 13 Jan 2014 02:26:18 +0000 (18:26 -0800)] 
Merge pull request #59 from NiLuJe/fix-warning

Fix a minor sign issue.

11 years agoAdd a test for read_concatenated_archives 60/head
Kevin Locke [Sat, 11 Jan 2014 23:40:16 +0000 (16:40 -0700)] 
Add a test for read_concatenated_archives

Make sure that we are reading the concatenated contents when requested
and only when requested.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
11 years ago[PATCH v3] Add read_concatenated_archives
Kevin Locke [Sat, 11 Jan 2014 23:38:52 +0000 (16:38 -0700)] 
[PATCH v3] Add read_concatenated_archives

As discussed in http://code.google.com/p/libarchive/issues/detail?id=348
the read_concatenated_archives option provides functionality similar to
the GNUtar --ignore-zeros option in order to support reading from
archives which have been concatenated together.

Changes in v2:
 * Replace recursion with looping for reading concatenated archives.

Changes in v3:
 * Improve comments about archive format detection and looping when
   reading concatenated archives.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
11 years agoVerify that Zip writer rejects too-large files when Zip64 is disabled. 62/head
Tim Kientzle [Sun, 12 Jan 2014 19:45:53 +0000 (11:45 -0800)] 
Verify that Zip writer rejects too-large files when Zip64 is disabled.

Interestingly, this found a bug in the write core:  if the
writer rejects a file, the write core would erroneously transition to
state DATA.

11 years agoVerify the end-of-archive information as part of the large zip test.
Tim Kientzle [Sun, 12 Jan 2014 19:21:02 +0000 (11:21 -0800)] 
Verify the end-of-archive information as part of the large zip test.

Fix a bug that breaks compat with Info-Zip 'unzip' program.

11 years agoMerge branch 'master' of github.com:kientzle/libarchive-zip64
Tim Kientzle [Sun, 12 Jan 2014 17:18:57 +0000 (09:18 -0800)] 
Merge branch 'master' of github.com:kientzle/libarchive-zip64

11 years agoOnly consume a second all-null record
Kevin Locke [Sat, 11 Jan 2014 23:35:21 +0000 (16:35 -0700)] 
Only consume a second all-null record

Currently any record following an all-null record will be consumed.
This is probably not the intended behavior, as it does not match the
comment and consumes/ignores unexpected and unrecognized data.  In
particular, for the read_concatenated_archives case, it could
incorrectly consume a non-null header.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
11 years agoOnly enable the still-experimental 'el' extra block
Tim Kientzle [Thu, 9 Jan 2014 05:20:10 +0000 (21:20 -0800)] 
Only enable the still-experimental 'el' extra block
if option 'zip:experimental' is specified.
This should limit the use of this option until the
final format is actually nailed down.

11 years agoIssue #329: https://code.google.com/p/libarchive/issues/detail?id=329
Tim Kientzle [Sun, 5 Jan 2014 05:46:57 +0000 (21:46 -0800)] 
Issue #329: https://code.google.com/p/libarchive/issues/detail?id=329

Fix POSIX.1e draft ACL handling on Linux systems that lack NFSv4 ACL libraries.

11 years agoFix a minor sign issue. 59/head
NiLuJe [Fri, 3 Jan 2014 23:44:50 +0000 (00:44 +0100)] 
Fix a minor sign issue.

archive_read_support_format_tar.c:802:16: error: comparison between
signed and unsigned integer expressions [-Werror=sign-compare]

11 years agoMerge remote-tracking branch 'upstream/master' into cmake-pkgconfig
NiLuJe [Fri, 3 Jan 2014 23:20:59 +0000 (00:20 +0100)] 
Merge remote-tracking branch 'upstream/master' into cmake-pkgconfig

11 years agoChange new extra block from 'LA' to 'el' to follow updated draft spec
Tim Kientzle [Fri, 3 Jan 2014 03:25:02 +0000 (19:25 -0800)] 
Change new extra block from 'LA' to 'el' to follow updated draft spec

11 years agoAdd a bitmap to indicate which fields are included for compression and for future...
Tim Kientzle [Thu, 2 Jan 2014 14:14:20 +0000 (06:14 -0800)] 
Add a bitmap to indicate which fields are included for compression and for future expansion

11 years agoChange the first field of the 'LA' extra block to the full 'version made by'
Tim Kientzle [Tue, 31 Dec 2013 18:11:48 +0000 (10:11 -0800)] 
Change the first field of the 'LA' extra block to the full 'version made by'

11 years agoImprove memory management in the large zip test
Tim Kientzle [Tue, 31 Dec 2013 17:54:34 +0000 (09:54 -0800)] 
Improve memory management in the large zip test

11 years agoOnly write the new 'LA' experimental extra block if it's explicitly enabled.
Tim Kientzle [Tue, 31 Dec 2013 17:19:52 +0000 (09:19 -0800)] 
Only write the new 'LA' experimental extra block if it's explicitly enabled.
Enable it in the appropriate tests.

E.g.,

$ bsdtar cf - --format=zip --option zip:experimental .

The syntax supports multiple experiments;
use --option zip:experiment_la to enable just the 'LA' experiment.

11 years agoA couple of changes to the experimental new extra block, as suggested by Steven Schweda.
Tim Kientzle [Tue, 31 Dec 2013 04:51:26 +0000 (20:51 -0800)] 
A couple of changes to the experimental new extra block, as suggested by Steven Schweda.

 * Name changed from 'at' to 'LA' (Local Attributes)
 * Trimmed 'version made by' down to just 1 byte system code

11 years agoBe stricter about the checksum field; reduce false-positives on the bid
Tim Kientzle [Mon, 30 Dec 2013 17:43:25 +0000 (09:43 -0800)] 
Be stricter about the checksum field; reduce false-positives on the bid

11 years agoSupport experimental "at" extra block for better streaming.
Tim Kientzle [Mon, 30 Dec 2013 04:57:17 +0000 (20:57 -0800)] 
Support experimental "at" extra block for better streaming.

The writer now writes this extra block with every local
file header; the reader recognizes it and uses it.
This allows streaming extraction to properly restore
file permissions and symlinks.

Without this, streaming extraction of Zip archives is
somewhat hobbled by the lack of full information in
the local file header.

Here's a detailed description of the new extra block.
The details here are subject to change at any time.

   -Extended Local File Header Extra Field (0x7461):

      The following is the layout of the extended local file
      header "extra" block.  This allows information to be
      included with the local file header that could previously
      only be stored with the central directory file header.

      Note: all fields stored in Intel low-byte/high-byte order.

        Value      Size       Description
        -----      ----       -----------
        0x7461     2 bytes    Tag for this "extra" block type
        Size       2 bytes    Size of this "extra" block
        Version
        Made By    2 bytes    See "Version Made By" above
        Internal File
        Attributes 2 bytes    See "Internal File Attributes" above
        External File
        Attributes 4 bytes    See "External File Attributes" above

      This extra block should only be used with the local
      file header.  The values stored should exactly match
      the corresponding values in the central directory
      file header.

11 years agoComment the definitive Zip documentation for future maintainers; note the history...
Tim Kientzle [Sun, 29 Dec 2013 22:26:21 +0000 (14:26 -0800)] 
Comment the definitive Zip documentation for future maintainers; note the history of this code.

11 years agoConvert some booleans into more compact bitfields
Tim Kientzle [Sun, 29 Dec 2013 22:05:17 +0000 (14:05 -0800)] 
Convert some booleans into more compact bitfields

11 years agoMore code rearranging
Tim Kientzle [Sun, 29 Dec 2013 21:29:38 +0000 (13:29 -0800)] 
More code rearranging

11 years agoUpdate some comments, fine-tune the streaming bid
Tim Kientzle [Sun, 29 Dec 2013 19:37:24 +0000 (11:37 -0800)] 
Update some comments, fine-tune the streaming bid

11 years agoRemove some redundant vars; more code reorg
Tim Kientzle [Sun, 29 Dec 2013 19:21:54 +0000 (11:21 -0800)] 
Remove some redundant vars; more code reorg

11 years agoOptimize skipping entries in seeking mode
Tim Kientzle [Sun, 29 Dec 2013 18:45:41 +0000 (10:45 -0800)] 
Optimize skipping entries in seeking mode

11 years agoClarify the wording.
Tim Kientzle [Sun, 29 Dec 2013 18:36:06 +0000 (10:36 -0800)] 
Clarify the wording.

11 years agoMove a 1MB buffer off the stack and onto the heap.
Tim Kientzle [Sun, 29 Dec 2013 06:33:37 +0000 (22:33 -0800)] 
Move a 1MB buffer off the stack and onto the heap.

11 years agoEliminate zip reader's redundant tracking of file position (the archive already does...
Tim Kientzle [Sun, 29 Dec 2013 03:50:07 +0000 (19:50 -0800)] 
Eliminate zip reader's redundant tracking of file position (the archive already does this).

11 years agoMake zip->offset tracking more consistent.
Tim Kientzle [Sun, 29 Dec 2013 03:27:33 +0000 (19:27 -0800)] 
Make zip->offset tracking more consistent.

11 years agoFix large zip test in streaming mode.
Tim Kientzle [Sun, 29 Dec 2013 03:17:24 +0000 (19:17 -0800)] 
Fix large zip test in streaming mode.

11 years agoReturn uncompressed size if it's known, even if compressed size and/or CRC are deferred.
Tim Kientzle [Sat, 28 Dec 2013 23:58:36 +0000 (15:58 -0800)] 
Return uncompressed size if it's known, even if compressed size and/or CRC are deferred.

11 years agoSkip stored data quickly when size is known at beginning even when CRC is at end
Tim Kientzle [Sat, 28 Dec 2013 23:36:36 +0000 (15:36 -0800)] 
Skip stored data quickly when size is known at beginning even when CRC is at end

11 years agoUpdate some comments
Tim Kientzle [Sat, 28 Dec 2013 23:30:04 +0000 (15:30 -0800)] 
Update some comments

11 years agoExtend large zip test to cover streaming reader as well.
Tim Kientzle [Sat, 28 Dec 2013 23:13:59 +0000 (15:13 -0800)] 
Extend large zip test to cover streaming reader as well.

11 years agoExpand the large zip test a bit
Tim Kientzle [Sat, 28 Dec 2013 21:40:47 +0000 (13:40 -0800)] 
Expand the large zip test a bit

11 years agoParse out the extra data before trying to insert into the tree.
Tim Kientzle [Sat, 28 Dec 2013 21:36:56 +0000 (13:36 -0800)] 
Parse out the extra data before trying to insert into the tree.

Since the tree is organized by offset, we
need the full offset from the extra data
(in the case of 64-bit offsets) before we do the
insertion.

While here, fix an obvious blooper: initialize the CRC function.

11 years agoTest for large Zip archives, following code for large Tar test.
Tim Kientzle [Sat, 28 Dec 2013 09:45:32 +0000 (01:45 -0800)] 
Test for large Zip archives, following code for large Tar test.
Fix several bugs:
 * comparison function for ordering entries in reader was wrong
 * writer wasn't including 64-bit sizes for entries of exactly 0xffffffff bytes
Also, add options to suppress CRC calculations and checks
(otherwise, this test spends a *lot* of time in CRC routines).

11 years agoRead Zip64 EOCD; work around an Info-Zip bug.
Tim Kientzle [Fri, 27 Dec 2013 08:41:48 +0000 (00:41 -0800)] 
Read Zip64 EOCD; work around an Info-Zip bug.

11 years agoFix whitespace
Tim Kientzle [Fri, 27 Dec 2013 07:17:29 +0000 (23:17 -0800)] 
Fix whitespace

11 years agoFinish the detailed verification of zip archive with single entry for both zip64...
Tim Kientzle [Fri, 27 Dec 2013 07:00:30 +0000 (23:00 -0800)] 
Finish the detailed verification of zip archive with single entry for both zip64 and non-zip64 cases.
Fix a few minor issues this uncovers.

11 years agoTest detailed zip format for regular file entry.
Tim Kientzle [Fri, 27 Dec 2013 03:52:53 +0000 (19:52 -0800)] 
Test detailed zip format for regular file entry.
Fix tests when built w/o zlib.

11 years agoDon't try to verify deflated data if zlib is unavailable.
Tim Kientzle [Fri, 27 Dec 2013 03:39:59 +0000 (19:39 -0800)] 
Don't try to verify deflated data if zlib is unavailable.

11 years agoRename write/read round-trip test.
Tim Kientzle [Fri, 27 Dec 2013 01:55:05 +0000 (17:55 -0800)] 
Rename write/read round-trip test.

11 years agoComment this test a little bit.
Tim Kientzle [Thu, 26 Dec 2013 23:43:58 +0000 (15:43 -0800)] 
Comment this test a little bit.

11 years agoTest that we can read the Zip64 extensions that we write.
Tim Kientzle [Thu, 26 Dec 2013 23:40:06 +0000 (15:40 -0800)] 
Test that we can read the Zip64 extensions that we write.

11 years agoBe more careful about enabling zip64 (fixes zip_compression_store test)
Tim Kientzle [Thu, 26 Dec 2013 23:29:52 +0000 (15:29 -0800)] 
Be more careful about enabling zip64 (fixes zip_compression_store test)
Add test for empty zip64 file
Fix reader to read empty zip64 files

11 years agoMore error reporting on these assertions.
Tim Kientzle [Thu, 26 Dec 2013 23:27:05 +0000 (15:27 -0800)] 
More error reporting on these assertions.

11 years agoAdjust expected permissions; zip code has slightly tightened
Tim Kientzle [Thu, 26 Dec 2013 22:02:03 +0000 (14:02 -0800)] 
Adjust expected permissions; zip code has slightly tightened
the default permissions used when extracting files.

11 years agoFix all current tests:
Tim Kientzle [Thu, 26 Dec 2013 21:59:55 +0000 (13:59 -0800)] 
Fix all current tests:
 * When searching for start of Central directory, DTRT if there are no entries.
 * Find end-of-archive marker when it is exactly at end of file
 * Recognize zip64 central directory locator (not yet fully parsed)
 * Don't return entry size if length-at-end, even if size looks reasonable

11 years agoOut-of-range seeks should fail, not truncate the seek.
Tim Kientzle [Thu, 26 Dec 2013 21:59:00 +0000 (13:59 -0800)] 
Out-of-range seeks should fail, not truncate the seek.

11 years agoSet compiler flags for Clang.
Tim Kientzle [Thu, 26 Dec 2013 21:58:41 +0000 (13:58 -0800)] 
Set compiler flags for Clang.

11 years agoBreak Zip compatibility test into 5 separate tests.
Tim Kientzle [Thu, 26 Dec 2013 21:57:26 +0000 (13:57 -0800)] 
Break Zip compatibility test into 5 separate tests.

11 years agoFix mismatched sign warning
Tim Kientzle [Thu, 26 Dec 2013 19:20:04 +0000 (11:20 -0800)] 
Fix mismatched sign warning

11 years agoFix warnings: mismatched signs, unused variables.
Tim Kientzle [Thu, 26 Dec 2013 19:19:16 +0000 (11:19 -0800)] 
Fix warnings:  mismatched signs, unused variables.

11 years agoMerge branch 'master' of github.com:kientzle/libarchive-zip64
Tim Kientzle [Wed, 25 Dec 2013 17:57:37 +0000 (09:57 -0800)] 
Merge branch 'master' of github.com:kientzle/libarchive-zip64

11 years agoMerge branch 'master' into cmake-pkgconfig
NiLuJe [Wed, 25 Dec 2013 11:12:31 +0000 (12:12 +0100)] 
Merge branch 'master' into cmake-pkgconfig

11 years agoFix typo
Tim Kientzle [Wed, 25 Dec 2013 01:32:33 +0000 (17:32 -0800)] 
Fix typo

11 years agoMerge recent changes from libarchive master repository.
Tim Kientzle [Wed, 25 Dec 2013 01:25:55 +0000 (17:25 -0800)] 
Merge recent changes from libarchive master repository.

11 years agoCleanups for zip64 support
Tim Kientzle [Wed, 25 Dec 2013 01:24:41 +0000 (17:24 -0800)] 
Cleanups for zip64 support

11 years agoMove the strsep() implementation to the mtree reader, which is
Tim Kientzle [Wed, 25 Dec 2013 01:13:30 +0000 (17:13 -0800)] 
Move the strsep() implementation to the mtree reader, which is
the only place it's used.

11 years agoHarmless typo in a comment. 56/head
NiLuJe [Tue, 24 Dec 2013 18:08:44 +0000 (19:08 +0100)] 
Harmless typo in a comment.

11 years agoMerge branch 'master' into fix-mingw
NiLuJe [Tue, 24 Dec 2013 17:49:48 +0000 (18:49 +0100)] 
Merge branch 'master' into fix-mingw

11 years agoMerge branch 'master' into cmake-pkgconfig
NiLuJe [Tue, 24 Dec 2013 17:49:18 +0000 (18:49 +0100)] 
Merge branch 'master' into cmake-pkgconfig

11 years agoMove .pc generation to a dedicated script (#55).
NiLuJe [Tue, 24 Dec 2013 17:46:31 +0000 (18:46 +0100)] 
Move .pc generation to a dedicated script (#55).

11 years agoMerge pull request #57 from NiLuJe/fix-has_encrypted_entries
Tim Kientzle [Tue, 24 Dec 2013 06:55:49 +0000 (22:55 -0800)] 
Merge pull request #57 from NiLuJe/fix-has_encrypted_entries

Make sure has_encrypted_entries is a signed int

11 years agoMerge pull request #54 from NiLuJe/fix-autotools-build
Tim Kientzle [Tue, 24 Dec 2013 06:49:22 +0000 (22:49 -0800)] 
Merge pull request #54 from NiLuJe/fix-autotools-build

Fix autotools build.