]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Paul Harris [Tue, 30 Jun 2015 08:04:59 +0000 (16:04 +0800)]
Add support for archive_read_data() for read_disk archives.
Hoisted the relevant archive_read variables into the
common archive struct.
Tim Kientzle [Mon, 29 Jun 2015 04:08:19 +0000 (21:08 -0700)]
Windows does not support %F, use %Y-%m-%d instead.
Tim Kientzle [Sun, 28 Jun 2015 18:38:49 +0000 (11:38 -0700)]
Remove unnecessary conditional
Tim Kientzle [Sun, 28 Jun 2015 02:39:50 +0000 (19:39 -0700)]
Merge pull request #564 from paulharris/bugfix_utf8
Bugfix - should be copy+converting from mbs to utf. Not mbs to mbs.
Tim Kientzle [Sun, 28 Jun 2015 02:37:57 +0000 (19:37 -0700)]
Merge pull request #568 from paulharris/issue-traverse
Correct comment regarding traverse mount points
Paul Harris [Fri, 26 Jun 2015 08:30:01 +0000 (16:30 +0800)]
Correct comment regarding traverse mount points
The default behaviour is to traverse.
The option is to turn OFF traversal.
Tim Kientzle [Tue, 23 Jun 2015 15:29:06 +0000 (08:29 -0700)]
Fix indentation
Tim Kientzle [Tue, 23 Jun 2015 15:26:09 +0000 (08:26 -0700)]
Merge pull request #566 from paulharris/bugfix_test_330
Test 330 - Add assert to catch a segfault.
Tim Kientzle [Tue, 23 Jun 2015 15:22:33 +0000 (08:22 -0700)]
Merge pull request #562 from paulharris/bugfix_compiler_warning
Fix a few compile warnings (g++ 4.7.2)
Tim Kientzle [Tue, 23 Jun 2015 15:21:45 +0000 (08:21 -0700)]
Merge pull request #561 from paulharris/bugfix_wmemmove
Fix CMake build - add HAVE_WMEMMOVE to config.h.in
Paul Harris [Tue, 23 Jun 2015 14:20:17 +0000 (22:20 +0800)]
Test 330 - Add assert to catch a segfault.
The assert shouldn't fail, but it currently does.
Paul Harris [Tue, 23 Jun 2015 14:21:39 +0000 (22:21 +0800)]
Bugfix - should be copy+converting from mbs to utf. Not mbs to mbs.
Paul Harris [Tue, 23 Jun 2015 07:06:17 +0000 (15:06 +0800)]
Fix a few compile warnings (g++ 4.7.2)
Paul Harris [Tue, 23 Jun 2015 07:04:18 +0000 (15:04 +0800)]
Fix CMake build - add HAVE_WMEMMOVE to config.h.in
HAVE_WMEMMOVE was added to CMakeLists.txt in
b6ba5603 ,
but not added to config.h.in
Tim Kientzle [Wed, 17 Jun 2015 04:40:16 +0000 (21:40 -0700)]
Merge pull request #560 from TomerHeber/master
7z inflation fails. #556
TomerHeber [Tue, 16 Jun 2015 18:45:08 +0000 (21:45 +0300)]
Merge pull request #1 from TomerHeber/fix-7zip-bug
Fix for issue - #556
TomerHeber [Tue, 16 Jun 2015 18:42:06 +0000 (21:42 +0300)]
Fix for issue - #556
7z inflation fails
Tim Kientzle [Mon, 15 Jun 2015 18:16:16 +0000 (11:16 -0700)]
Issue #520: Define BCRYPT_SUCCESS for VS2008
Tim Kientzle [Mon, 15 Jun 2015 17:54:56 +0000 (10:54 -0700)]
Issue #520: Visual Studio 2008 is not C99 compliant.
Tim Kientzle [Wed, 10 Jun 2015 14:51:30 +0000 (07:51 -0700)]
Merge pull request #559 from Tarsnap/tarsnap
Minor libarchive fixes from tarsnap
Tim Kientzle [Mon, 8 Jun 2015 13:02:46 +0000 (06:02 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Mon, 8 Jun 2015 13:02:09 +0000 (06:02 -0700)]
Test harness should use 'const' buffer here
Tim Kientzle [Mon, 8 Jun 2015 13:01:04 +0000 (06:01 -0700)]
Spelling
Tim Kientzle [Sat, 6 Jun 2015 18:25:31 +0000 (11:25 -0700)]
Merge pull request #555 from orex/master
archive_write_set_format_filter_by_ext: man pages updated.
Kirill Okhotnikov [Tue, 2 Jun 2015 07:47:56 +0000 (09:47 +0200)]
BSD format in manual.
Colin Percival [Sat, 30 May 2015 06:20:57 +0000 (23:20 -0700)]
Free any allocated memory upon allocation failure
Colin Percival [Tue, 2 Jun 2015 05:05:59 +0000 (22:05 -0700)]
Comments: small spelling and grammar fixes
Colin Percival [Tue, 2 Jun 2015 04:57:04 +0000 (21:57 -0700)]
Strings: fix an incorrect name of a function
Kirill Okhotnikov [Mon, 1 Jun 2015 08:31:12 +0000 (10:31 +0200)]
archive_write_set_format_filter_by_ext: man pages updated.
Tim Kientzle [Sun, 31 May 2015 05:32:08 +0000 (22:32 -0700)]
Merge pull request #106 from orex/corrected
Corrected
Tim Kientzle [Tue, 19 May 2015 13:50:49 +0000 (06:50 -0700)]
Merge pull request #544 from pombreda/patch-1
Fixed minor typo
Philippe Ombredanne [Tue, 19 May 2015 08:21:35 +0000 (10:21 +0200)]
Fixed minor typo
Tim Kientzle [Sun, 17 May 2015 21:24:34 +0000 (14:24 -0700)]
Issue #543: Start building out some tests for MSDOS attributes
Tim Kientzle [Sat, 16 May 2015 20:36:13 +0000 (13:36 -0700)]
Merge pull request #536 from pombredanne/patch-1
Fixing path to UC Regents-copyrighted file.
Tim Kientzle [Sat, 16 May 2015 20:35:48 +0000 (13:35 -0700)]
Merge pull request #537 from pombredanne/patch-2
Updating references to tar/matching.c and get_date.c
Tim Kientzle [Sat, 16 May 2015 20:28:10 +0000 (13:28 -0700)]
Issue #523: Fail if entry is too small for encryption header.
Tim Kientzle [Sat, 16 May 2015 19:16:28 +0000 (12:16 -0700)]
Issue #539: Try a different way to compute max/min time_t values.
Tim Kientzle [Sat, 16 May 2015 18:21:16 +0000 (11:21 -0700)]
Issue #540: Fix test to avoid use-after-free error.
Tim Kientzle [Wed, 13 May 2015 15:12:58 +0000 (08:12 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Wed, 13 May 2015 15:12:40 +0000 (08:12 -0700)]
Fix spelling of archive_read_data_into_fd
Philippe Ombredanne [Mon, 11 May 2015 13:22:49 +0000 (15:22 +0200)]
Updating references to tar/matching.c and get_date
tar/matching.c is no a longer a file in the codebase. It has been replaced by libarchive/archive_match.c which is different code.
tar/get_date.c is now libarchive archive_getdate.c
Philippe Ombredanne [Mon, 11 May 2015 13:11:11 +0000 (15:11 +0200)]
Fixing path to UC Regents-copyrighted file.
The path pointed to a file whose name has changed.
Kirill Okhotnikov [Mon, 11 May 2015 11:51:00 +0000 (13:51 +0200)]
Small cosmetic changes.
Tim Kientzle [Sun, 10 May 2015 17:53:15 +0000 (10:53 -0700)]
Github Issue #529: mismatched const usage in archive_read_open_memory.c
Tim Kientzle [Sun, 10 May 2015 17:50:22 +0000 (10:50 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 9 May 2015 20:53:10 +0000 (13:53 -0700)]
Merge pull request #102 from sergiud/master
Fix for VC compilation errors
Tim Kientzle [Sat, 9 May 2015 20:46:46 +0000 (13:46 -0700)]
Merge pull request #534 from rossburton/master
Fix out of tree builds
Tim Kientzle [Sat, 9 May 2015 05:33:06 +0000 (22:33 -0700)]
Merge pull request #531 from hinrichsenhans/master
Fixes for VS2012 Compile
Tim Kientzle [Fri, 8 May 2015 03:51:03 +0000 (20:51 -0700)]
Fix printing of special chars in strdump
Ross Burton [Tue, 5 May 2015 14:29:52 +0000 (15:29 +0100)]
build: fix out of tree builds
When writing files with shell directly it's best to create the target
directory first, as it's possible that the build directory is almost empty.
In particular out of tree builds with automake's dependency tracking
disabled is an easy way of triggering this.
Hans Hinrichsen [Tue, 5 May 2015 03:30:01 +0000 (22:30 -0500)]
Fixes for VS2012 Compile
Updated includes in bsdtar_windows.h to bring in _setmode and _O_BINARY via io.h and fcntl.h
Explicitly cast a few void * to their structs to suppress Intellisense warnings
Moved variable in read_archive - VS2012 needs variables declared at the top of the block (does not support C99)
Tim Kientzle [Sun, 3 May 2015 04:40:26 +0000 (21:40 -0700)]
Extend Zip64 test to verify more of the format details
Hans Hinrichsen [Thu, 30 Apr 2015 03:45:31 +0000 (22:45 -0500)]
Fixes for VS2012 Compile
Fixes for VS2012 Compile
Added headers needed when compiling in Win32 without Cygwin
Some pointers needed to be explicitly cast
VS had a lot of trouble with storing the result of
archive_entry_pathname in a local variable
The only way I could get it to compile was to call the function twice
Tim Kientzle [Sun, 26 Apr 2015 04:58:58 +0000 (21:58 -0700)]
Use a macro wrapper on LL literals for compatibility with certain old Windows compilers.
Tim Kientzle [Tue, 21 Apr 2015 04:07:14 +0000 (21:07 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Tue, 21 Apr 2015 04:06:53 +0000 (21:06 -0700)]
Fix a missing asterisk in the sample code.
Tim Kientzle [Sun, 19 Apr 2015 01:14:17 +0000 (18:14 -0700)]
More wording changes
Tim Kientzle [Sat, 18 Apr 2015 19:50:38 +0000 (12:50 -0700)]
Expand CONTRIBUTING
Tim Kientzle [Sat, 18 Apr 2015 19:28:15 +0000 (12:28 -0700)]
Fix markdown typos
Tim Kientzle [Sat, 18 Apr 2015 19:26:48 +0000 (12:26 -0700)]
Merge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 18 Apr 2015 19:26:14 +0000 (12:26 -0700)]
Add a CONTRIBUTING file. Github shows a link to this in the Issues tracker.
Tim Kientzle [Thu, 13 Nov 2014 04:21:36 +0000 (20:21 -0800)]
Test support for UTF8 pathname extension in Zip archives
Tim Kientzle [Tue, 14 Apr 2015 04:35:00 +0000 (21:35 -0700)]
Merge pull request #108 from maksqwe/zip_encryption
Fix check for ZIP_ENTRY_FLAG_ENCRYPTED
Tim Kientzle [Sun, 12 Apr 2015 18:49:09 +0000 (11:49 -0700)]
Update iconv.m4
Tim Kientzle [Sun, 12 Apr 2015 17:59:46 +0000 (10:59 -0700)]
Reword this warning message.
Tim Kientzle [Sun, 12 Apr 2015 06:21:43 +0000 (23:21 -0700)]
Nudge the Zip64 cutoff a little higher.
A simple test (feeding /dev/random through gzip) suggests
that deflate will only expand the data by 0.03% in the worst case.
So allow a 0.4% margin instead of the 6.25% I had here earlier.
Tim Kientzle [Sun, 12 Apr 2015 05:57:58 +0000 (22:57 -0700)]
Github Issue #522: Detect cycles in the ISO directory tree
Tim Kientzle [Sun, 12 Apr 2015 05:44:12 +0000 (22:44 -0700)]
Issue #522: Dir loop in malformed ISO causes segfault
Github Issue #522 revealed that we could blow the stack
when recursing to assemble ISO paths. I saw this happen
at 130,000 dir levels. This patch addresses this by limiting
the directory recursion to 1,000 elements.
TODO: It would be even better to track and detect the dir loop
directly.
Tim Kientzle [Sat, 11 Apr 2015 20:24:32 +0000 (13:24 -0700)]
Select Zip64 extensions a little more aggressively.
* Compressed files close to 4GiB (in case compression makes file larger)
* Include encryption overhead when checking whether file is too big.
* Clarify comments
Suggested by a conversation on info-zip-dev mailing list.
Tim Kientzle [Sat, 11 Apr 2015 16:53:30 +0000 (09:53 -0700)]
Merge pull request #112 from ngladitz/gnutar-large-id
Fall back to base-256 encoding for UID/GID like GNU tar does.
Brad King [Sat, 11 Apr 2015 16:32:05 +0000 (12:32 -0400)]
README: Update issue tracker link to refer to GitHub issues
Also mention this in the NEWS file.
Brad King [Sat, 11 Apr 2015 16:31:09 +0000 (12:31 -0400)]
INSTALL: Update Wiki link to refer to GitHub wiki
Nils Gladitz [Wed, 8 Apr 2015 18:58:29 +0000 (20:58 +0200)]
Fall back to base-256 encoding for UID/GID like GNU tar does.
Sergiu Dotenco [Mon, 23 Mar 2015 13:07:38 +0000 (14:07 +0100)]
fixed another compilation error
Tim Kientzle [Sun, 22 Mar 2015 20:27:03 +0000 (13:27 -0700)]
Merge pull request #111 from andreasstieger/xattr
Fix a subtle wrong library check that caused libarchive to depend on lib...
Andreas Stieger [Sun, 22 Mar 2015 19:44:26 +0000 (20:44 +0100)]
Fix a subtle wrong library check that caused libarchive to depend on libattr when it should be using glibc.
Tim Kientzle [Sun, 8 Mar 2015 07:20:55 +0000 (23:20 -0800)]
If lzma_cputhreads() is unavailable, default the number of threads to 1.
Tim Kientzle [Thu, 5 Mar 2015 04:43:49 +0000 (20:43 -0800)]
Merge pull request #101 from chenxiaolong/install
Allow library installation to be disabled in CMake
Tim Kientzle [Thu, 5 Mar 2015 04:41:37 +0000 (20:41 -0800)]
Merge pull request #107 from rpaulo/master
libarchive: use lzma_stream_encoder_mt() if it's available.
Tim Kientzle [Thu, 5 Mar 2015 04:36:23 +0000 (20:36 -0800)]
Merge pull request #110 from ghedo/traversal
Fix directory traversal in bsdcpio
Alessandro Ghedini [Sun, 1 Mar 2015 11:07:45 +0000 (12:07 +0100)]
Add ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS option
This fixes a directory traversal in the cpio tool.
Tim Kientzle [Wed, 4 Mar 2015 05:09:44 +0000 (21:09 -0800)]
Issue 270: Correct spelling of 'archive_write_header'
Tim Kientzle [Wed, 4 Mar 2015 04:49:27 +0000 (20:49 -0800)]
Split out the compiler flags to make it easier to adjust locally.
Tim Kientzle [Wed, 4 Mar 2015 04:12:50 +0000 (20:12 -0800)]
Read_open_memory does not alter the data passed to it, so should accept const void * arguments
Tim Kientzle [Wed, 4 Mar 2015 04:17:37 +0000 (20:17 -0800)]
Issue 410: Segfault on invalid rar archive
Libarchive's API passes a void ** which is set by the format
to the address of the entry data that was just read.
In one particular case, the RAR decompression logic uses a
non-NULL value here to indicate that the internal 128k decompression
buffer has been filled. But the RAR code took no steps to ensure
that the value was set NULL on entry. As a result, a crafted RAR
file can trick libarchive into returning to the caller a 128k block
of data starting at whatever value was previously in the caller's
variable.
The fix is simply to set *buff = NULL on entry to the RAR
decompression logic.
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
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.
Tim Kientzle [Sat, 21 Feb 2015 18:37:48 +0000 (10:37 -0800)]
Issue 408: Fix escaped newline parsing
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.
Tim Kientzle [Sat, 21 Feb 2015 05:37:37 +0000 (21:37 -0800)]
Issue 412: Use uint64_t throughout for file sizes
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
Tim Kientzle [Sat, 21 Feb 2015 05:32:31 +0000 (21:32 -0800)]
Issue 412: Visual Studio 2008 does not support C99
Rui Paulo [Tue, 17 Feb 2015 19:19:55 +0000 (11:19 -0800)]
xz: add the xz:threads option.
It's now possible to chose the number of threads used by the lzma
multi-threaded compressor using tar ... --xz --option xz:threads=N where
N is the number of threads. When N is 0, it will create threads based
on the number of CPUs (following the xz(1) model).
Xiao-Long Chen [Sun, 15 Feb 2015 21:06:25 +0000 (16:06 -0500)]
CMakeLists.txt: Make libxml2 and expat optional
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.
Maks Naumov [Tue, 10 Feb 2015 11:32:12 +0000 (13:32 +0200)]
Fix check for ZIP_ENTRY_FLAG_ENCRYPTED
"zip->entry_flags | ZIP_ENTRY_FLAG_ENCRYPTED" is always true.
Rui Paulo [Mon, 9 Feb 2015 18:15:38 +0000 (10:15 -0800)]
libarchive: use lzma_stream_encoder_mt() if it's available.
This is the multi-threaded stream encoder version of lzma that brings
significant speed improvements. libarchive is using all the available
threads when lzma_stream_encoder_mt() is present.
Kirill Okhotnikov [Mon, 9 Feb 2015 12:37:14 +0000 (13:37 +0100)]
New functionality added for automatically choose write file format and filter by filename.
Kirill Okhotnikov [Mon, 9 Feb 2015 10:17:44 +0000 (11:17 +0100)]
Warning of unsed function "aes_ctr_encrypt_counter" were fixed.
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.