]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
10 years agofixed another compilation error 102/head
Sergiu Dotenco [Mon, 23 Mar 2015 13:07:38 +0000 (14:07 +0100)] 
fixed another compilation error

10 years agoMerge branch 'master' of github.com:libarchive/libarchive
Sergiu Dotenco [Sun, 1 Mar 2015 11:28:04 +0000 (12:28 +0100)] 
Merge branch 'master' of github.com:libarchive/libarchive

Conflicts:
libarchive/archive_read_support_format_zip.c

10 years agoRemove mentions of a required signature. This was added
Tim Kientzle [Sun, 22 Feb 2015 19:46:17 +0000 (11:46 -0800)] 
Remove mentions of a required signature.  This was added
by libarchive but never caught on with other mtree implementations.

10 years agoIssue 408: Fix escaped newline parsing
Tim Kientzle [Sat, 21 Feb 2015 18:37:48 +0000 (10:37 -0800)] 
Issue 408: Fix escaped newline parsing

10 years agoIssue 407: Tar reader tries to examine last character of an empty filename
Tim Kientzle [Sat, 21 Feb 2015 17:36:23 +0000 (09:36 -0800)] 
Issue 407: Tar reader tries to examine last character of an empty filename

Of interest:  While working on this, I noted that we have
an existing test for tar files with empty filenames.
That test asserts that the correct behavior here is for the
format handler to return the entry with the empty filename
and a status of ARCHIVE_OK.  Clients need to be robust against
empty filenames.

10 years agoIssue 412: Use uint64_t throughout for file sizes
Tim Kientzle [Sat, 21 Feb 2015 05:37:37 +0000 (21:37 -0800)] 
Issue 412: Use uint64_t throughout for file sizes

10 years agoIssue 412: Be more careful about symlink length before trying to read it
Tim Kientzle [Sat, 21 Feb 2015 05:36:06 +0000 (21:36 -0800)] 
Issue 412: Be more careful about symlink length before trying to read it

10 years agoIssue 412: Visual Studio 2008 does not support C99
Tim Kientzle [Sat, 21 Feb 2015 05:32:31 +0000 (21:32 -0800)] 
Issue 412: Visual Studio 2008 does not support C99

10 years agoIssue 409: archive_read_extract object leaked
Tim Kientzle [Sat, 14 Feb 2015 04:20:15 +0000 (20:20 -0800)] 
Issue 409: archive_read_extract object leaked

Register the cleanup function for the object at the point
where the object is actually allocated to ensure that
it always gets cleaned up.

10 years agoIssue 405: segfault on malformed 7z archive
Tim Kientzle [Sun, 8 Feb 2015 21:29:51 +0000 (13:29 -0800)] 
Issue 405: segfault on malformed 7z archive

Reject a couple of nonsensical cases.

10 years agoIssue 406: Segfault on malformed Zip archive
Tim Kientzle [Sun, 8 Feb 2015 03:03:43 +0000 (19:03 -0800)] 
Issue 406: Segfault on malformed Zip archive

Issue here was reading a size field as a signed number
and then using that as an offset.  Fixed by correctly
masking the size value to an unsigned result.

Includes test based on the archive provided in the issue report.

10 years agoA correct fix for Issue 404: Read past end of string parsing fflags
Tim Kientzle [Sat, 7 Feb 2015 21:44:34 +0000 (13:44 -0800)] 
A correct fix for Issue 404: Read past end of string parsing fflags

The previous fix actually broke the fflag parsing.  We
cannot use strcmp() here because we're comparing a null-terminated
string to a part of another string.

This fix explicitly tracks the various string lengths and
checks that they match before calling memcmp() or wmemcmp().
That avoids any buffer overrun without breaking the parser.

10 years agoIssue 402: Failed to recognize empty dir name in lha/lzh file
Tim Kientzle [Sat, 7 Feb 2015 21:32:58 +0000 (13:32 -0800)] 
Issue 402: Failed to recognize empty dir name in lha/lzh file

When parsing a directory name, we checked for the name
length being zero, but not for the first byte being a
null byte.  Add a similar check for the file case.

10 years agoCorrect the spelling of 'wcscmp'.
Tim Kientzle [Sat, 7 Feb 2015 21:16:12 +0000 (13:16 -0800)] 
Correct the spelling of 'wcscmp'.

10 years agoIssue 404: Read past end of string parsing fflags
Tim Kientzle [Sat, 7 Feb 2015 20:59:39 +0000 (12:59 -0800)] 
Issue 404: Read past end of string parsing fflags

10 years agoIssue 403: Buffer underflow parsing 'ar' header
Tim Kientzle [Sat, 7 Feb 2015 20:35:33 +0000 (12:35 -0800)] 
Issue 403: Buffer underflow parsing 'ar' header

While pruning trailing text from ar filenames, we did not
check for an empty filename.  This results in reading the byte
before the filename on the stack.

While here, change a number of ar format issues from WARN to FATAL.
It's better to abort on a damaged file than risk reading garbage.
No doubt, this will require additional tuning in the future.

10 years agoIssue 400: Crash reading malformed compress (.Z) input
Tim Kientzle [Sat, 7 Feb 2015 07:39:33 +0000 (23:39 -0800)] 
Issue 400: Crash reading malformed compress (.Z) input

The KwKwK case can never validly appear as the first token
after a reset.

Thanks to the afl-gcc folks for finding this.

10 years agoIssue 398: Overlapping memcpy
Tim Kientzle [Sat, 7 Feb 2015 07:00:30 +0000 (23:00 -0800)] 
Issue 398: Overlapping memcpy

Some of the pathname edits parse a part of the pathname
in the entry, then try to set the pathname from that part.
This leads the text routines to memcpy() from within the
string buffer.

Avoid this by simply using memmove() for low-level string append
operations.

10 years agoIssues 396, 397: Ignore entries with empty filenames.
Tim Kientzle [Sat, 7 Feb 2015 06:45:58 +0000 (22:45 -0800)] 
Issues 396, 397: Ignore entries with empty filenames.

Bugs in the rar and cab readers lead to returning entries
with empty filenames.  Make bsdtar resistant to this.

Of course, we should also fix the rar and cab
readers to handle these cases correctly and either
return correctly-populated entries or fail cleanly.

10 years agoSet a proper error message if we hit end-of-file when
Tim Kientzle [Sat, 7 Feb 2015 06:07:16 +0000 (22:07 -0800)] 
Set a proper error message if we hit end-of-file when
trying to read a cpio header.

Suggested by Issue #395, although the actual problem there
seems to have been the same as Issue #394.

10 years agoMerge pull request #104 from snarkmaster/improve_skips
Tim Kientzle [Sat, 7 Feb 2015 05:37:43 +0000 (21:37 -0800)] 
Merge pull request #104 from snarkmaster/improve_skips

Do not request 0-length skips; sanity-check return.

10 years agoDo not request 0-length skips; sanity-check return. 104/head
Alexey Spiridonov [Mon, 2 Feb 2015 03:26:26 +0000 (19:26 -0800)] 
Do not request 0-length skips; sanity-check return.

I noticed that my skip callback was always being invoked with a request of
0.  This is a bit wasteful since skip callbacks commonly involve a syscall
like lseek().

Also, it seems good to error out when the skip callback is buggy, and claims
to skip more than requested.

Test Plan:

```
autoreconf -ivf && ./configure && make && make check
```

The same tests fail as before, with the same error messages. If interested,
both failure logs are here:

https://github.com/snarkmaster/libarchive/commit/00c9751cde6cc888fb844b7a1fcc0f82dbaaedb1

These are on Ubuntu 14.04.

10 years agoAdd a check to archive_read_filter_consume to reject any
Tim Kientzle [Sat, 31 Jan 2015 07:57:03 +0000 (23:57 -0800)] 
Add a check to archive_read_filter_consume to reject any
attempts to move the file pointer by a negative amount.

Note:  Either this or commit 3865cf2 provides a fix for
Issue 394.

10 years agoIssue 394: Segfault when reading malformed old-style cpio archives
Tim Kientzle [Sat, 31 Jan 2015 07:54:19 +0000 (23:54 -0800)] 
Issue 394: Segfault when reading malformed old-style cpio archives

Root cause here was an implicit cast that resulted in
reading very large file sizes as negative numbers.

10 years agoExtend the fuzz test to fuzz more bytes in small files;
Tim Kientzle [Sat, 31 Jan 2015 07:18:45 +0000 (23:18 -0800)] 
Extend the fuzz test to fuzz more bytes in small files;
add the sample cpio_bin_le file to the test.

10 years agoDuplicate the cpio_bin_be test to build a basic cpio_bin_le test.
Tim Kientzle [Sat, 31 Jan 2015 07:16:41 +0000 (23:16 -0800)] 
Duplicate the cpio_bin_be test to build a basic cpio_bin_le test.

10 years agoMerge pull request #103 from sevan/patch-1
Tim Kientzle [Wed, 28 Jan 2015 06:42:30 +0000 (22:42 -0800)] 
Merge pull request #103 from sevan/patch-1

Update tar.5

10 years agoUpdate tar.5 103/head
Sevan Janiyan [Tue, 27 Jan 2015 22:30:02 +0000 (22:30 +0000)] 
Update tar.5

Joerg Shilling's star is CDDL with some components in GPL (autoconf files) (see COPYING file in star source archive)

10 years agoA couple of stray files that should be cleaned by the clean script.
Tim Kientzle [Mon, 26 Jan 2015 06:01:22 +0000 (22:01 -0800)] 
A couple of stray files that should be cleaned by the clean script.

10 years agoMissing .El at end of list.
Tim Kientzle [Mon, 26 Jan 2015 05:57:47 +0000 (21:57 -0800)] 
Missing .El at end of list.

10 years agoSkip the --lz4 test if libarchive was compiled without the library
Tim Kientzle [Mon, 26 Jan 2015 05:51:16 +0000 (21:51 -0800)] 
Skip the --lz4 test if libarchive was compiled without the library
and this platform does not have an lz4 executable.

It seems there should be a better way to handle this.... <sigh>

10 years agoExpand verbose output with -x.
Tim Kientzle [Mon, 26 Jan 2015 05:30:08 +0000 (21:30 -0800)] 
Expand verbose output with -x.

After this change:
  -xvv emits the detailed format used by -tv.
  -xv uses the SUSv2 format.
  -x without -v doesn't emit anything.

10 years agoForce binary output when extracting to stdout on Windows.
Tim Kientzle [Mon, 26 Jan 2015 05:29:31 +0000 (21:29 -0800)] 
Force binary output when extracting to stdout on Windows.

10 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Mon, 26 Jan 2015 05:27:43 +0000 (21:27 -0800)] 
Merge branch 'master' of github.com:libarchive/libarchive

10 years agofixed vc compilation errors
Sergiu Dotenco [Sun, 25 Jan 2015 11:32:06 +0000 (12:32 +0100)] 
fixed vc compilation errors

10 years agoMerge pull request #97 from alkino/master
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

10 years agoMerge pull request #83 from kjk/master
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

10 years agoMerge pull request #99 from sikoragmbh/fix-windows-includes
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

10 years agoMerge pull request #98 from sikoragmbh/master
Tim Kientzle [Thu, 22 Jan 2015 04:18:55 +0000 (20:18 -0800)] 
Merge pull request #98 from sikoragmbh/master

Fix CMake CMP0054 warnings

10 years agoMerge pull request #100 from jcfr/fix-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

10 years agoFix warnings for CMake Policy CMP0054 100/head
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.

10 years agofix capitalized windows includes 99/head
Martin Müllenhaupt [Mon, 19 Jan 2015 12:54:06 +0000 (13:54 +0100)] 
fix capitalized windows includes

10 years agofix CMake CMP0054 warnings 98/head
Martin Müllenhaupt [Mon, 19 Jan 2015 11:07:13 +0000 (12:07 +0100)] 
fix CMake CMP0054 warnings

10 years agoFix a potential crash issue discovered by Alexander Cherepanov:
Tim Kientzle [Sat, 10 Jan 2015 20:24:58 +0000 (12:24 -0800)] 
Fix a potential crash issue discovered by Alexander Cherepanov:

It seems bsdtar automatically handles stacked compression. This is a
nice feature but it could be problematic when it's completely
unlimited.  Most clearly it's illustrated with quines:

$ curl -sRO http://www.maximumcompression.com/selfgz.gz
$ (ulimit -v 10000000 && bsdtar -tvf selfgz.gz)
bsdtar: Error opening archive: Can't allocate data for gzip decompression

Without ulimit, bsdtar will eat all available memory. This could also
be a problem for other applications using libarchive.

10 years agoIssue #131: Implement tar --no-xattr
Tim Kientzle [Sat, 10 Jan 2015 19:55:29 +0000 (11:55 -0800)] 
Issue #131: Implement tar --no-xattr

This option suppresses both archiving and
restoring xattrs.  The latter relies on existing
machinery; for the former, I've added a
ARCHIVE_READDISK_NO_XATTR flag to archive_read_disk.

Caveat: I've not implemented any tests for these new features.

10 years agoIssue 327: tar should accept zero-sized exclude files with -X
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.

10 years agoPass the correct pointer when checking the Zip64 end-of-central-directory
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.

10 years agoIssue 379: Zip containing another Zip misparsed
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.

10 years agoIssue 379: Zip containing another Zip is misparsed
Tim Kientzle [Sun, 4 Jan 2015 07:44:48 +0000 (23:44 -0800)] 
Issue 379: Zip containing another Zip is misparsed

10 years agoFix typos in archive_pathmatch logic.
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.

10 years agoMerge branch 'vlovich-patch-1'
Tim Kientzle [Sun, 14 Dec 2014 18:52:52 +0000 (10:52 -0800)] 
Merge branch 'vlovich-patch-1'

10 years agoMerge branch 'patch-1' of https://github.com/vlovich/libarchive into 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.

10 years agoMerge pull request #96 from trevd/master
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

10 years agoUse binary mode when opening files.
Tim Kientzle [Sat, 13 Dec 2014 05:45:33 +0000 (21:45 -0800)] 
Use binary mode when opening files.

10 years agoAdd Android AOSP Build System Makefile fragments and config files 96/head
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

10 years agoAdd a support for utf-8 in archive_entry fields 97/head
Nicolas Cornu [Thu, 11 Dec 2014 20:36:08 +0000 (21:36 +0100)] 
Add a support for utf-8 in archive_entry fields

10 years agoMerge pull request #94 from DimitryAndric/master
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

10 years agoFix the following -Werror warning from clang 3.5.0, while building cpio.c on amd64... 94/head
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

10 years agoIssue 382: Move variables to top of function for non-C99 compilers.
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.

10 years agoFix handling of leading slashes for hardlinks
Tim Kientzle [Mon, 3 Nov 2014 01:11:20 +0000 (17:11 -0800)] 
Fix handling of leading slashes for hardlinks

10 years agoFix a lack of definitions for OpenSSL library on CMake build system.
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.

10 years agoFix build failure without cryptography library.
Michihiro NAKAJIMA [Tue, 14 Oct 2014 11:41:51 +0000 (20:41 +0900)] 
Fix build failure without cryptography library.

10 years agoFix build failure with gcc.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 14:30:23 +0000 (23:30 +0900)] 
Fix build failure with gcc.

10 years agoFix CMake warnings on Mac OS X.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 14:04:26 +0000 (23:04 +0900)] 
Fix CMake warnings on Mac OS X.

10 years agoAvoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,
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.

10 years agoMerge pull request #85 from purpleKarrot/master
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

10 years agoUse archive_random() function instead of rand() function.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 08:31:50 +0000 (17:31 +0900)] 
Use archive_random() function instead of rand() function.

10 years agoFix test failure without zlib.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 08:03:59 +0000 (17:03 +0900)] 
Fix test failure without zlib.

10 years agoFix build failure without zlib.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 07:49:46 +0000 (16:49 +0900)] 
Fix build failure without zlib.

10 years agoImplement readpassphrase function, which read a passphrase from console, on Windows.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 07:25:28 +0000 (16:25 +0900)] 
Implement readpassphrase function, which read a passphrase from console, on Windows.

10 years agoImplement HMAC, PBKDF2 and AES support on Windows using CNG for
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.

10 years agoFix build failure with zlib on Windows.
Michihiro NAKAJIMA [Mon, 13 Oct 2014 02:31:14 +0000 (11:31 +0900)] 
Fix build failure with zlib on Windows.

10 years agoPlug memory leak made by my recent changes.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:38:38 +0000 (14:38 +0900)] 
Plug memory leak made by my recent changes.

10 years agoFix style.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:36:28 +0000 (14:36 +0900)] 
Fix style.

10 years agoFix typo.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:25:31 +0000 (14:25 +0900)] 
Fix typo.

10 years agoInclude stdlib.h to avoid build failure on Windows.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 05:06:34 +0000 (14:06 +0900)] 
Include stdlib.h to avoid build failure on Windows.

10 years agoFix 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

10 years agoFix build failure on Windows.
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.

10 years agoFix build failure on Windows.
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

10 years agoFix build failure on Windows.
Michihiro NAKAJIMA [Sun, 12 Oct 2014 01:50:09 +0000 (10:50 +0900)] 
Fix build failure on Windows.

10 years agoAvoid code analyzer error.
Michihiro NAKAJIMA [Sun, 5 Oct 2014 01:37:49 +0000 (10:37 +0900)] 
Avoid code analyzer error.

10 years agoFix the potential of memory leaks in our test suit, which
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.

10 years agoFix the potential of memory leaks in our test suit.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 15:56:47 +0000 (00:56 +0900)] 
Fix the potential of memory leaks in our test suit.

10 years agoRemove unneeded length check to avoid the potential of a dereference of
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.

10 years agoRemove unneeded code.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 15:06:33 +0000 (00:06 +0900)] 
Remove unneeded code.

10 years agoFix the potential of a dereference of null pointer.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:56:57 +0000 (23:56 +0900)] 
Fix the potential of a dereference of null pointer.

10 years agoRemove unneeded null check.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:54:26 +0000 (23:54 +0900)] 
Remove unneeded null check.

10 years agoCorrect detecting iconv liberary with Clang.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 14:27:37 +0000 (23:27 +0900)] 
Correct detecting iconv liberary with Clang.

10 years agoAdd tests for --passphrase option.
Michihiro NAKAJIMA [Sat, 4 Oct 2014 10:30:38 +0000 (19:30 +0900)] 
Add tests for --passphrase option.

10 years agoDo not ask passphrases when a passphrase was already specified with
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.

10 years agoIssue 378: compute string pointers after concatenation, to protect against reallocati...
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

10 years agoInclude new hmac/random support files in cmake build
Tim Kientzle [Fri, 26 Sep 2014 01:50:57 +0000 (18:50 -0700)] 
Include new hmac/random support files in cmake build

10 years agoFix cmake check for arc4random_buf
Tim Kientzle [Fri, 26 Sep 2014 01:50:32 +0000 (18:50 -0700)] 
Fix cmake check for arc4random_buf

10 years agoCorrect an archive object for set_reader_options function.
Michihiro NAKAJIMA [Tue, 23 Sep 2014 00:20:18 +0000 (09:20 +0900)] 
Correct an archive object for set_reader_options function.

10 years agoFix build failure on Ubuntu.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 09:36:45 +0000 (18:36 +0900)] 
Fix build failure on Ubuntu.

10 years agoImplement reading a passphrase from ttys.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 08:45:59 +0000 (17:45 +0900)] 
Implement reading a passphrase from ttys.

10 years agoAdd a new API, archive_write_set_passphrase_callback, for encryption.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 06:00:45 +0000 (15:00 +0900)] 
Add a new API, archive_write_set_passphrase_callback, for encryption.

10 years agoCorrectly set a terminator.
Michihiro NAKAJIMA [Sun, 21 Sep 2014 00:30:38 +0000 (09:30 +0900)] 
Correctly set a terminator.

10 years agoFix detecting message digest functions.
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.

10 years agoMerge pull request #91 from chenxiaolong/includes
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