]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Xiao-Long Chen [Sun, 15 Feb 2015 21:06:25 +0000 (16:06 -0500)]
CMakeLists.txt: Make libxml2 and expat optional
Xiao-Long Chen [Fri, 23 Jan 2015 20:12:11 +0000 (15:12 -0500)]
Allow library installation to be disabled in CMake
Tim Kientzle [Thu, 22 Jan 2015 04:31:29 +0000 (20:31 -0800)]
Merge pull request #97 from alkino/master
Add a support for utf-8 in archive_entry fields
Tim Kientzle [Thu, 22 Jan 2015 04:29:44 +0000 (20:29 -0800)]
Merge pull request #83 from kjk/master
speed up new_node() by reallocating more than one node at a time
Tim Kientzle [Thu, 22 Jan 2015 04:19:30 +0000 (20:19 -0800)]
Merge pull request #99 from sikoragmbh/fix-windows-includes
fix capitalized windows includes
Tim Kientzle [Thu, 22 Jan 2015 04:18:55 +0000 (20:18 -0800)]
Merge pull request #98 from sikoragmbh/master
Fix CMake CMP0054 warnings
Tim Kientzle [Thu, 22 Jan 2015 04:18:19 +0000 (20:18 -0800)]
Merge pull request #100 from jcfr/fix-cmp0054-warnings
Fix warnings for CMake Policy CMP0054
Jean-Christophe Fillion-Robin [Wed, 21 Jan 2015 07:09:53 +0000 (02:09 -0500)]
Fix warnings for CMake Policy CMP0054
This commit ensures the variables CMAKE_C_COMPILER_ID and
CMAKE_C_COMPILER_ID will always be interpreted by removing
the double quotes.
It fixes warnings like this one:
CMake Warning (dev) at CMakeLists.txt:91 (IF):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "CMAKE_C_COMPILER_ID" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
Martin Müllenhaupt [Mon, 19 Jan 2015 12:54:06 +0000 (13:54 +0100)]
fix capitalized windows includes
Martin Müllenhaupt [Mon, 19 Jan 2015 11:07:13 +0000 (12:07 +0100)]
fix CMake CMP0054 warnings
Tim Kientzle [Sat, 10 Jan 2015 18:27:11 +0000 (10:27 -0800)]
Issue 327: tar should accept zero-sized exclude files with -X
Key problem: We were using archive_read_format_raw() to read
the exclude file which does not accept empty files.
Enabling archive_read_format_empty() and reworking the
end-of-input handling fixed this.
Also add a test for this case to prevent it from regressing.
Tim Kientzle [Sat, 10 Jan 2015 18:03:41 +0000 (10:03 -0800)]
Pass the correct pointer when checking the Zip64 end-of-central-directory
locator.
This fixes a bug introduced in
94bab9f when I reworked the
EOCD scan.
Tim Kientzle [Sun, 4 Jan 2015 07:46:57 +0000 (23:46 -0800)]
Issue 379: Zip containing another Zip misparsed
The revised code now scans backwards from the end
of the file to ensure we always pick the last end-of-central-directory
record in case there is more than one.
Tim Kientzle [Sun, 4 Jan 2015 07:44:48 +0000 (23:44 -0800)]
Issue 379: Zip containing another Zip is misparsed
Tim Kientzle [Mon, 15 Dec 2014 04:14:19 +0000 (20:14 -0800)]
Fix typos in archive_pathmatch logic.
This was explored in pull request #78 by github user maksqwe.
After considering the alternatives, I think the existing
behavior was correct (but the comments were wrong and there was
extraneous code). Extended tests to cover this case and some
other cases that were not fully exercised.
Tim Kientzle [Sun, 14 Dec 2014 18:52:52 +0000 (10:52 -0800)]
Merge branch 'vlovich-patch-1'
Tim Kientzle [Sun, 14 Dec 2014 18:50:09 +0000 (10:50 -0800)]
Merge branch 'patch-1' of https://github.com/vlovich/libarchive into vlovich-patch-1
Conflicts:
libarchive/archive_write_set_format_zip.c
This was originally submitted as:
https://github.com/libarchive/libarchive/pull/84
I've made the following corrections:
* Added a new variable for the deflate compression level (the submitted patch mis-used the requested_compression variable)
* Extended the Zip store format test to also verify correct results with compression-level=0
TODO: This really needs a new test to exercises non-zero compression-level options.
Tim Kientzle [Sun, 14 Dec 2014 18:16:13 +0000 (10:16 -0800)]
Merge pull request #96 from trevd/master
Add Android AOSP Build System Makefile fragments and config files
Tim Kientzle [Sat, 13 Dec 2014 05:45:33 +0000 (21:45 -0800)]
Use binary mode when opening files.
Trevor Drake [Sat, 13 Dec 2014 02:12:05 +0000 (02:12 +0000)]
Add Android AOSP Build System Makefile fragments and config files
add def guard for S_IRGRP which is defined in the AndroidConfig.h
system header
Nicolas Cornu [Thu, 11 Dec 2014 20:36:08 +0000 (21:36 +0100)]
Add a support for utf-8 in archive_entry fields
Tim Kientzle [Sat, 22 Nov 2014 17:30:26 +0000 (09:30 -0800)]
Merge pull request #94 from DimitryAndric/master
Fix time_t related warning from clang 3.5 in cpio/cpio.c
Dimitry Andric [Sat, 22 Nov 2014 12:01:08 +0000 (13:01 +0100)]
Fix the following -Werror warning from clang 3.5.0, while building cpio.c on amd64 (or any arch with 64-bit time_t):
libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
if (abs(mtime - now) > (365/2)*86400)
^
libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
if (abs(mtime - now) > (365/2)*86400)
^~~
labs
1 error generated.
This is because time_t is a long on amd64. To avoid the warning, just copy the equivalent test from a few lines before, which is used in the Windows case, and which is type safe.
Obtained from: https://reviews.freebsd.org/D1198
Tim Kientzle [Sun, 16 Nov 2014 01:18:56 +0000 (17:18 -0800)]
Issue 382: Move variables to top of function for non-C99 compilers.
This should address an issue compiling with older versions
of Visual Studio.
Tim Kientzle [Mon, 3 Nov 2014 01:11:20 +0000 (17:11 -0800)]
Fix handling of leading slashes for hardlinks
Michihiro NAKAJIMA [Tue, 14 Oct 2014 12:09:38 +0000 (21:09 +0900)]
Fix a lack of definitions for OpenSSL library on CMake build system.
Michihiro NAKAJIMA [Tue, 14 Oct 2014 11:41:51 +0000 (20:41 +0900)]
Fix build failure without cryptography library.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 14:30:23 +0000 (23:30 +0900)]
Fix build failure with gcc.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 14:04:26 +0000 (23:04 +0900)]
Fix CMake warnings on Mac OS X.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 12:55:56 +0000 (21:55 +0900)]
Avoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,
so we should use $<TARGET_FILE> expression instead.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 09:15:05 +0000 (18:15 +0900)]
Merge pull request #85 from purpleKarrot/master
Fix int32_t in config.h.in
Michihiro NAKAJIMA [Mon, 13 Oct 2014 08:31:50 +0000 (17:31 +0900)]
Use archive_random() function instead of rand() function.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 08:03:59 +0000 (17:03 +0900)]
Fix test failure without zlib.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 07:49:46 +0000 (16:49 +0900)]
Fix build failure without zlib.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 07:25:28 +0000 (16:25 +0900)]
Implement readpassphrase function, which read a passphrase from console, on Windows.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 05:41:21 +0000 (14:41 +0900)]
Implement HMAC, PBKDF2 and AES support on Windows using CNG for
Zip encryption and decryption.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 02:31:14 +0000 (11:31 +0900)]
Fix build failure with zlib on Windows.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:38:38 +0000 (14:38 +0900)]
Plug memory leak made by my recent changes.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:36:28 +0000 (14:36 +0900)]
Fix style.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:25:31 +0000 (14:25 +0900)]
Fix typo.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:06:34 +0000 (14:06 +0900)]
Include stdlib.h to avoid build failure on Windows.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:04:25 +0000 (14:04 +0900)]
Fix build failure on Windows.
- Visual Studio does not provide unistd.h
- Visual Studio does not provide getopt
- Increase portability
Michihiro NAKAJIMA [Sun, 12 Oct 2014 04:30:20 +0000 (13:30 +0900)]
Fix build failure on Windows.
- MSC does not allow this statement, char buf[static 10U].
- Use archive_string utility instead of snprintf.
- Use gmtime_r or _gmtime64_s if available for thread safe.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 04:06:44 +0000 (13:06 +0900)]
Fix build failure on Windows.
- Apply cast statement
- Do not use snprintf directly
- Use ARCHIVE_LITERALL_LL macro for portability
Michihiro NAKAJIMA [Sun, 12 Oct 2014 01:50:09 +0000 (10:50 +0900)]
Fix build failure on Windows.
Michihiro NAKAJIMA [Sun, 5 Oct 2014 01:37:49 +0000 (10:37 +0900)]
Avoid code analyzer error.
Michihiro NAKAJIMA [Sun, 5 Oct 2014 01:12:04 +0000 (10:12 +0900)]
Fix the potential of memory leaks in our test suit, which
Xcode Analyzer pointed out.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 15:56:47 +0000 (00:56 +0900)]
Fix the potential of memory leaks in our test suit.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 15:11:04 +0000 (00:11 +0900)]
Remove unneeded length check to avoid the potential of a dereference of
null pointer.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 15:06:33 +0000 (00:06 +0900)]
Remove unneeded code.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:56:57 +0000 (23:56 +0900)]
Fix the potential of a dereference of null pointer.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:54:26 +0000 (23:54 +0900)]
Remove unneeded null check.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:27:37 +0000 (23:27 +0900)]
Correct detecting iconv liberary with Clang.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 10:30:38 +0000 (19:30 +0900)]
Add tests for --passphrase option.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 06:55:34 +0000 (15:55 +0900)]
Do not ask passphrases when a passphrase was already specified with
--passphrase option.
Tim Kientzle [Fri, 26 Sep 2014 01:51:57 +0000 (18:51 -0700)]
Issue 378: compute string pointers after concatenation, to protect against reallocation moving the string
Tim Kientzle [Fri, 26 Sep 2014 01:50:57 +0000 (18:50 -0700)]
Include new hmac/random support files in cmake build
Tim Kientzle [Fri, 26 Sep 2014 01:50:32 +0000 (18:50 -0700)]
Fix cmake check for arc4random_buf
Michihiro NAKAJIMA [Tue, 23 Sep 2014 00:20:18 +0000 (09:20 +0900)]
Correct an archive object for set_reader_options function.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 09:36:45 +0000 (18:36 +0900)]
Fix build failure on Ubuntu.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 08:45:59 +0000 (17:45 +0900)]
Implement reading a passphrase from ttys.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 06:00:45 +0000 (15:00 +0900)]
Add a new API, archive_write_set_passphrase_callback, for encryption.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 00:30:38 +0000 (09:30 +0900)]
Correctly set a terminator.
Michihiro NAKAJIMA [Tue, 16 Sep 2014 22:24:59 +0000 (07:24 +0900)]
Fix detecting message digest functions.
This bug was caused by renaming archive_crypto.
Michihiro NAKAJIMA [Tue, 16 Sep 2014 13:34:43 +0000 (22:34 +0900)]
Merge pull request #91 from chenxiaolong/includes
Fix incorrect CMake test directory when building as a subproject
Michihiro NAKAJIMA [Tue, 16 Sep 2014 13:19:33 +0000 (22:19 +0900)]
Merge pull request #90 from chenxiaolong/mingw
Include windows.h in archive_entry.h
Michihiro NAKAJIMA [Tue, 16 Sep 2014 12:55:20 +0000 (21:55 +0900)]
Add --passphrase option to bsdtar and bsdcpio.
Xiao-Long Chen [Tue, 16 Sep 2014 04:17:19 +0000 (00:17 -0400)]
Don't include windows.h on Cygwin
Xiao-Long Chen [Tue, 16 Sep 2014 04:11:20 +0000 (00:11 -0400)]
Fix incorrect CMake test directory when building as a subproject
This is an extension of
e800985adbb0820c5692ea016b3a8499d69a73dc
Michihiro NAKAJIMA [Mon, 15 Sep 2014 09:10:58 +0000 (18:10 +0900)]
Property handle __archive_read_next_passphrase function.
Return the same passphrase while the passphraes is passed
even if it was passed by a callback function.
Michihiro NAKAJIMA [Mon, 15 Sep 2014 05:50:54 +0000 (14:50 +0900)]
Change digest functionarity files and relative global variables from
archive_crypto to archive_digest.
Michihiro NAKAJIMA [Mon, 15 Sep 2014 00:23:50 +0000 (09:23 +0900)]
Split test_read_format_zip_filename to know what filename conversion
is tested or skipped.
Michihiro NAKAJIMA [Mon, 15 Sep 2014 00:05:28 +0000 (09:05 +0900)]
Add test_archive_write_set_format_by_name_warc.
Michihiro NAKAJIMA [Mon, 15 Sep 2014 00:01:23 +0000 (09:01 +0900)]
Add test_archive_write_add_filter_by_name_lz4.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 23:44:20 +0000 (08:44 +0900)]
Fix style.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 23:24:09 +0000 (08:24 +0900)]
Merge pull request #88 from RyanLucchese/master
fixed hang in UUEncode filter
Michihiro NAKAJIMA [Sun, 14 Sep 2014 22:57:18 +0000 (07:57 +0900)]
Merge pull request #89 from chenxiaolong/xxhash
Remove xxhash.h from CMakeLists.txt (fixes CMake build issue after
20d5451 )
Michihiro NAKAJIMA [Sun, 14 Sep 2014 13:38:27 +0000 (22:38 +0900)]
Skip encryption/decryption tests for WinZip AES if platform does not
provide PBKDF2 functionarity.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 13:27:45 +0000 (22:27 +0900)]
Fix build failure on FreeBSD 9.2.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 12:15:42 +0000 (21:15 +0900)]
Fix build failure on Ubuntu.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 10:23:44 +0000 (19:23 +0900)]
Switch passing passphrases from option framework to new APIs for
encryption and decryption.
Michihiro NAKAJIMA [Sun, 14 Sep 2014 08:23:29 +0000 (17:23 +0900)]
Add new APIs that pass passphrases for reading and writing
encrypted archives.
Xiao-Long Chen [Sun, 14 Sep 2014 06:41:10 +0000 (02:41 -0400)]
Include windows.h in archive_entry.h
This fixes the following error when building with mingw-w64:
error: unknown type name 'BY_HANDLE_FILE_INFORMATION'
Xiao-Long Chen [Sun, 14 Sep 2014 06:34:13 +0000 (02:34 -0400)]
Remove xxhash.h from CMakeLists.txt
Already done in Makefile.am in commit
20d545194b222ea6d1a0e497f16f889e1588d394
Michihiro NAKAJIMA [Wed, 10 Sep 2014 12:52:33 +0000 (21:52 +0900)]
Document zip:encryption option.
Use 'zipcrypt' insted of 'traditional' for zip:encryption option.
Michihiro NAKAJIMA [Tue, 9 Sep 2014 22:29:06 +0000 (07:29 +0900)]
Skip a test if the platform does not have cryptographic functionarity.
Michihiro NAKAJIMA [Tue, 9 Sep 2014 13:29:07 +0000 (22:29 +0900)]
Add support for WinZip AES encryption.
Michihiro NAKAJIMA [Sun, 7 Sep 2014 12:34:33 +0000 (21:34 +0900)]
Move cryptographic functions into archive_cryptor.c.
I will rename archive_crypto.c to archive_digest.c.
Michihiro NAKAJIMA [Sun, 7 Sep 2014 11:58:28 +0000 (20:58 +0900)]
Rename archive_hmac.h archive_hmac_private.h
Michihiro NAKAJIMA [Sun, 7 Sep 2014 11:39:53 +0000 (20:39 +0900)]
Make sure zip reader skips whole its contens.
Michihiro NAKAJIMA [Sun, 7 Sep 2014 11:28:59 +0000 (20:28 +0900)]
Add support for traditional PKWARE encryption.
Michihiro NAKAJIMA [Sun, 7 Sep 2014 07:41:19 +0000 (16:41 +0900)]
Fix decryption in streamable mode.
Michihiro NAKAJIMA [Sat, 6 Sep 2014 12:59:46 +0000 (21:59 +0900)]
Fix comment. Do not use one line comment statement '//'
because some compiler does not recognize it.
Michihiro NAKAJIMA [Sat, 6 Sep 2014 12:34:38 +0000 (21:34 +0900)]
Simply traditioal encryption api.
Michihiro NAKAJIMA [Mon, 18 Aug 2014 12:38:52 +0000 (21:38 +0900)]
Add support for extracting WinZIp AES encryption.
Michihiro NAKAJIMA [Fri, 15 Aug 2014 21:24:48 +0000 (06:24 +0900)]
Add support for Traditional PKWARE decryption to zip reader.
Michihiro NAKAJIMA [Thu, 4 Sep 2014 15:43:08 +0000 (00:43 +0900)]
Fix build failure of xxhash on Ubuntu.
Michihiro NAKAJIMA [Thu, 14 Aug 2014 15:06:09 +0000 (00:06 +0900)]
Style fix.
Ryan Lucchese [Tue, 2 Sep 2014 23:35:12 +0000 (17:35 -0600)]
fixed hang in UUEncode filter
Michihiro NAKAJIMA [Sun, 31 Aug 2014 11:40:32 +0000 (20:40 +0900)]
Fix issue 375: failure to read some larger .7z archives
Increase a maxinum entry limitation up to
100000000 from
1000000 .