]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Michihiro NAKAJIMA [Mon, 26 Dec 2011 01:38:11 +0000 (20:38 -0500)]
Issue 203: Getting current directory does not rely on PATH_MAX, which some platforms do not have.
SVN-Revision: 4004
Andres Mejia [Sun, 25 Dec 2011 15:10:46 +0000 (10:10 -0500)]
Give some default value for PATH_MAX on systems that don't have PATH_MAX defined.
SVN-Revision: 3999
Michihiro NAKAJIMA [Sun, 25 Dec 2011 14:51:27 +0000 (09:51 -0500)]
Rework zip writer not to rely on structure alignment to write headers.
SVN-Revision: 3997
Michihiro NAKAJIMA [Sun, 25 Dec 2011 14:35:24 +0000 (09:35 -0500)]
Plug name leaks: merge r3988,r3990 and r3991 from trunk.
SVN-Revision: 3996
Andres Mejia [Sat, 24 Dec 2011 21:37:28 +0000 (16:37 -0500)]
Fix misspelling of overridden.
SVN-Revision: 3994
Andres Mejia [Sat, 24 Dec 2011 21:37:25 +0000 (16:37 -0500)]
Fix spelling error.
SVN-Revision: 3993
Michihiro NAKAJIMA [Sat, 24 Dec 2011 21:28:48 +0000 (16:28 -0500)]
Merge r3989 from trunk: Fix build failure on Visual Studio.
SVN-Revision: 3992
Andres Mejia [Sat, 24 Dec 2011 21:27:09 +0000 (16:27 -0500)]
Really make Bcj2_Decode a private symbol.
SVN-Revision: 3991
Andres Mejia [Sat, 24 Dec 2011 21:25:01 +0000 (16:25 -0500)]
Make pad_to symbol a private symbol.
SVN-Revision: 3990
Michihiro NAKAJIMA [Sat, 24 Dec 2011 21:22:54 +0000 (16:22 -0500)]
Fix build failure on Visual Studio.
SVN-Revision: 3989
Andres Mejia [Sat, 24 Dec 2011 21:19:33 +0000 (16:19 -0500)]
Make Bcj2_Decode a private symbol.
SVN-Revision: 3988
Michihiro NAKAJIMA [Sat, 24 Dec 2011 19:03:24 +0000 (14:03 -0500)]
A string conversion of symlink names in Zip file.
Reader side:
- if a hdrcharset option is set, convert a symlink name from that to current locale.
- if a hdrcharset option is not set and the file name is stored as UTF-8, convert
a symlink name from UTF-8 to current locale, but this will not report the conversion
failure.
Writer side:
- Convert a symlink name as same as the file name. I think it is suitable especially
when the character-set of the file name is UTF-8.
Even if the conversion failed, do report the error and handle the symlink name without
string conversion since there is no character-set regulation for the symlink name in
the Zip format specific.
SVN-Revision: 3987
Tim Kientzle [Sat, 24 Dec 2011 18:09:50 +0000 (13:09 -0500)]
Version number updates propagated by the release scripts.
SVN-Revision: 3986
Tim Kientzle [Sat, 24 Dec 2011 18:04:00 +0000 (13:04 -0500)]
Bump trunk to version 3.0.900a in preparation for work on
libarchive 3.1.
Merge NEWS updates from 3.0 branch.
SVN-Revision: 3985
Tim Kientzle [Sat, 24 Dec 2011 18:01:58 +0000 (13:01 -0500)]
Prepare for a production release:
* Update NEWS
* Bump version, drop 'b'eta qualifier
* Remove -Werror from build scripts
SVN-Revision: 3984
Tim Kientzle [Sat, 24 Dec 2011 17:49:14 +0000 (12:49 -0500)]
Libarchive 3.0
SVN-Revision: 3983
Michihiro NAKAJIMA [Sat, 24 Dec 2011 13:06:48 +0000 (08:06 -0500)]
Follow up with r3981 fixing __packed keyword on MSVC.
SVN-Revision: 3982
Michihiro NAKAJIMA [Sat, 24 Dec 2011 12:54:52 +0000 (07:54 -0500)]
Fix build failure using __packed on MSVC.
SVN-Revision: 3981
Michihiro NAKAJIMA [Sat, 24 Dec 2011 12:49:52 +0000 (07:49 -0500)]
Issue 199: Merge r3835 from trunk.
SVN-Revision: 3980
Tim Kientzle [Sat, 24 Dec 2011 03:57:42 +0000 (22:57 -0500)]
Various fixes merged from the FreeBSD tree.
(Thanks to Martin Matuska for inventorying these for me.)
SVN-Revision: 3979
Tim Kientzle [Sat, 24 Dec 2011 03:50:11 +0000 (22:50 -0500)]
More fixes from FreeBSD, thanks to Martin Matuska.
SVN-Revision: 3978
Tim Kientzle [Sat, 24 Dec 2011 03:48:52 +0000 (22:48 -0500)]
Various fixes from FreeBSD.
Thanks to Martin Matuska for inventorying these.
SVN-Revision: 3977
Tim Kientzle [Sat, 24 Dec 2011 03:47:15 +0000 (22:47 -0500)]
Various fixes from FreeBSD.
SVN-Revision: 3976
Tim Kientzle [Sat, 24 Dec 2011 03:44:05 +0000 (22:44 -0500)]
Put BUGS section at end, following mdoc conventions.
SVN-Revision: 3975
Tim Kientzle [Sat, 24 Dec 2011 03:42:00 +0000 (22:42 -0500)]
.Dt titles are traditionally in all uppercase
SVN-Revision: 3974
Tim Kientzle [Sat, 24 Dec 2011 03:37:10 +0000 (22:37 -0500)]
Use the preferred spelling of FreeBSD.org.
SVN-Revision: 3973
Tim Kientzle [Sat, 24 Dec 2011 03:00:26 +0000 (22:00 -0500)]
There's no need to handle pipes differently here.
SVN-Revision: 3972
Michihiro NAKAJIMA [Fri, 23 Dec 2011 00:19:37 +0000 (19:19 -0500)]
Add support for symlink to ZIP writer.
SVN-Revision: 3966
Michihiro NAKAJIMA [Thu, 22 Dec 2011 21:55:48 +0000 (16:55 -0500)]
Style fix.
SVN-Revision: 3965
Michihiro NAKAJIMA [Thu, 22 Dec 2011 17:22:48 +0000 (12:22 -0500)]
Avoid an extra copy of a symbolic-link name by using archive_entry_copy_symlink_l function
instead of archive_entry_copy_symlink.
SVN-Revision: 3964
Michihiro NAKAJIMA [Thu, 22 Dec 2011 17:08:10 +0000 (12:08 -0500)]
Further report an error through string conversion functions when memory allocation failed.
SVN-Revision: 3963
Michihiro NAKAJIMA [Thu, 22 Dec 2011 15:19:35 +0000 (10:19 -0500)]
Fix a memory leak.
SVN-Revision: 3962
Michihiro NAKAJIMA [Thu, 22 Dec 2011 13:11:27 +0000 (08:11 -0500)]
Set a proper error message for a encypted file.
SVN-Revision: 3961
Michihiro NAKAJIMA [Thu, 22 Dec 2011 11:54:24 +0000 (06:54 -0500)]
Add and update some comments.
SVN-Revision: 3960
Tim Kientzle [Thu, 22 Dec 2011 06:41:14 +0000 (01:41 -0500)]
Leave libtool version 11 for a possible libarchive 2.9 release.
Libarchive 3.0 will use shared library version 12.
SVN-Revision: 3959
Tim Kientzle [Thu, 22 Dec 2011 06:19:39 +0000 (01:19 -0500)]
Include the new test file in the distribution.
SVN-Revision: 3958
Tim Kientzle [Thu, 22 Dec 2011 06:18:29 +0000 (01:18 -0500)]
Basic test and support for symlinks in Zip archives.
SVN-Revision: 3957
Tim Kientzle [Thu, 22 Dec 2011 05:56:59 +0000 (00:56 -0500)]
Fixup a couple of tests that relied on the old read_data_into_buffer,
which I removed recently.
SVN-Revision: 3956
Tim Kientzle [Thu, 22 Dec 2011 05:47:08 +0000 (00:47 -0500)]
Correct a comment.
SVN-Revision: 3955
Tim Kientzle [Thu, 22 Dec 2011 05:46:08 +0000 (00:46 -0500)]
Remove a few stray references to ARCHIVE_API_VERSION, which was
removed some time ago.
Also remove the last references to archive_read_data_into_buffer
(a mis-designed interface that was deprecated a very long time ago).
SVN-Revision: 3954
Michihiro NAKAJIMA [Wed, 21 Dec 2011 02:37:07 +0000 (21:37 -0500)]
Improve robustness against deliberately currupted 7-Zip archives.
This still needs to be testd with test_fuzz.
SVN-Revision: 3953
Michihiro NAKAJIMA [Tue, 20 Dec 2011 23:43:11 +0000 (18:43 -0500)]
Fix BCJ converter to correctly work with libarchive when the converter is invoked by a multiple call.
SVN-Revision: 3952
Michihiro NAKAJIMA [Tue, 20 Dec 2011 20:59:44 +0000 (15:59 -0500)]
Improve reading header code to reduce a use of memory resource however the number of
the file entries are in the archive. The previous version extracted the whole header
image into memory and handle it.
SVN-Revision: 3951
Michihiro NAKAJIMA [Mon, 19 Dec 2011 23:30:59 +0000 (18:30 -0500)]
Add support for PPMd to 7-Zip writer.
SVN-Revision: 3950
Michihiro NAKAJIMA [Mon, 19 Dec 2011 20:10:27 +0000 (15:10 -0500)]
Remove unnecessary including files.
SVN-Revision: 3949
Michihiro NAKAJIMA [Mon, 19 Dec 2011 19:31:52 +0000 (14:31 -0500)]
Avoid a warning on Windows.
SVN-Revision: 3948
Michihiro NAKAJIMA [Mon, 19 Dec 2011 19:28:33 +0000 (14:28 -0500)]
Set proper the default compression type as appropriate according to the compressions the platform supports.
SVN-Revision: 3947
Michihiro NAKAJIMA [Mon, 19 Dec 2011 10:11:52 +0000 (05:11 -0500)]
Fix build failure without zlib.
SVN-Revision: 3946
Michihiro NAKAJIMA [Mon, 19 Dec 2011 10:05:41 +0000 (05:05 -0500)]
Delay the initialization of the compression until it is really needed
in order not to fail test_write_format_7zip while storing only empty files.
SVN-Revision: 3945
Tim Kientzle [Mon, 19 Dec 2011 01:58:10 +0000 (20:58 -0500)]
Get 7zip writer to compile on systems that lack liblzma.
I still need to look into test failures on MacOS.
SVN-Revision: 3944
Tim Kientzle [Mon, 19 Dec 2011 01:05:50 +0000 (20:05 -0500)]
Refactor the UID/GID lookup in write_disk so that it can be
called from outside of this module.
SVN-Revision: 3943
Tim Kientzle [Mon, 19 Dec 2011 00:55:25 +0000 (19:55 -0500)]
Fix a string conversion test to work on Apple.
SVN-Revision: 3942
Michihiro NAKAJIMA [Sun, 18 Dec 2011 22:22:31 +0000 (17:22 -0500)]
Add 7-Zip writer.
This writer supports Copy, Deflate, BZIP2, LZMA1, and LZMA2, but 7-Zip's filters such as BCJ are not supported.
SVN-Revision: 3941
Michihiro NAKAJIMA [Sun, 18 Dec 2011 22:12:04 +0000 (17:12 -0500)]
Enable archive_string_conversion_to_charset to handle UTF-16LE.
This will be used by 7-Zip writer.
SVN-Revision: 3940
Michihiro NAKAJIMA [Sun, 18 Dec 2011 22:05:26 +0000 (17:05 -0500)]
Fix reading times in 7-Zip archives when the time data is not of all files.
SVN-Revision: 3939
Tim Kientzle [Sun, 18 Dec 2011 18:56:58 +0000 (13:56 -0500)]
Improve mtree error handling.
SVN-Revision: 3938
Michihiro NAKAJIMA [Sun, 18 Dec 2011 17:48:55 +0000 (12:48 -0500)]
Fix the mismatch of FOREACH and ENDFOREACH in CMakeLists.txt
SVN-Revision: 3937
Michihiro NAKAJIMA [Sun, 18 Dec 2011 12:10:43 +0000 (07:10 -0500)]
Fix typo.
SVN-Revision: 3936
Michihiro NAKAJIMA [Sun, 18 Dec 2011 10:06:40 +0000 (05:06 -0500)]
Do not assume that even if __STDC_ISO_10646__ is defined UTF-8 characters can
be converted to Wide characters(wchar_t) without success of setlocale(LANG, "en_US.UTF-8").
SVN-Revision: 3935
Michihiro NAKAJIMA [Sun, 18 Dec 2011 09:51:55 +0000 (04:51 -0500)]
If a file type is directory, make sure the tail of the file name is '/'.
SVN-Revision: 3934
Michihiro NAKAJIMA [Sat, 17 Dec 2011 19:27:11 +0000 (14:27 -0500)]
Correctly handle symbolic files in 7-Zip archives.
SVN-Revision: 3933
Michihiro NAKAJIMA [Sat, 17 Dec 2011 19:20:49 +0000 (14:20 -0500)]
Adjust a 7zip test to the change of r3929.
SVN-Revision: 3932
Andres Mejia [Sat, 17 Dec 2011 18:09:54 +0000 (13:09 -0500)]
Include some basic notes about RAR format support in libarchive.
SVN-Revision: 3931
Michihiro NAKAJIMA [Sat, 17 Dec 2011 18:01:00 +0000 (13:01 -0500)]
Slightly improve robustness against currupted 7-Zip archive files.
SVN-Revision: 3930
Michihiro NAKAJIMA [Sat, 17 Dec 2011 17:52:06 +0000 (12:52 -0500)]
The High 16 bytes of attributes is a posix file mode. so we can get a proper file mode from 7-Zip archive files.
SVN-Revision: 3929
Tim Kientzle [Sat, 17 Dec 2011 07:38:11 +0000 (02:38 -0500)]
Rework the crypto probe to check a list of algorithms for
a single library, rather than a list of libraries for each algorithm.
Use this to order libmd to be checked after OpenSSL/libcrypto.
SVN-Revision: 3928
Tim Kientzle [Sat, 17 Dec 2011 07:21:53 +0000 (02:21 -0500)]
In autoconf configure, probe OpenSSL first, then libmd.
SVN-Revision: 3927
Tim Kientzle [Sat, 17 Dec 2011 07:17:23 +0000 (02:17 -0500)]
Don't use libmd and OpenSSL at the same time; they
provide conflicting definitions for SHA512 symbols.
SVN-Revision: 3926
Michihiro NAKAJIMA [Thu, 15 Dec 2011 08:59:58 +0000 (03:59 -0500)]
Remove an unneeded variable.
SVN-Revision: 3925
Michihiro NAKAJIMA [Wed, 14 Dec 2011 17:45:12 +0000 (12:45 -0500)]
Enable 7-Zip reader to handle both BCJ and BCJ2 with all encoding types.
SVN-Revision: 3924
Michihiro NAKAJIMA [Wed, 14 Dec 2011 05:23:51 +0000 (00:23 -0500)]
Update comments.
SVN-Revision: 3923
Michihiro NAKAJIMA [Wed, 14 Dec 2011 05:06:37 +0000 (00:06 -0500)]
Fix typo. s/reamining/remaining/g
SVN-Revision: 3922
Michihiro NAKAJIMA [Wed, 14 Dec 2011 05:02:25 +0000 (00:02 -0500)]
Allocate memory for an extracted sub-stream before extracting it because we already know the size.
SVN-Revision: 3921
Joerg Sonnenberger [Wed, 14 Dec 2011 00:24:48 +0000 (19:24 -0500)]
More mode_t fallout from Solaris
SVN-Revision: 3920
Joerg Sonnenberger [Wed, 14 Dec 2011 00:14:13 +0000 (19:14 -0500)]
Cast explicit to u_int to appeace gcc
SVN-Revision: 3919
Joerg Sonnenberger [Tue, 13 Dec 2011 23:07:17 +0000 (18:07 -0500)]
Properly check if EXT2_IOC_GETFLAGS is actually usable.
OpenIndiana likes to install e2fsprogs, but doesn't provide a working
ioctl.
SVN-Revision: 3918
Andres Mejia [Tue, 13 Dec 2011 18:43:48 +0000 (13:43 -0500)]
Fix compiler warning "array subscript is above array bounds."
SVN-Revision: 3917
Michihiro NAKAJIMA [Tue, 13 Dec 2011 12:46:11 +0000 (07:46 -0500)]
Improve RAR SFX archives detection; RAR reader can detect ELF file's SFX.
SVN-Revision: 3916
Michihiro NAKAJIMA [Tue, 13 Dec 2011 12:27:58 +0000 (07:27 -0500)]
Improve 7-Zip SFX archives detection; 7-Zip reader can detect ELF file's SFX.
SVN-Revision: 3915
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:57:15 +0000 (00:57 -0500)]
Avoid build failure on llvm.
SVN-Revision: 3914
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:32:34 +0000 (00:32 -0500)]
Add BCJ2 sample files to Makefile.am
SVN-Revision: 3913
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:26:18 +0000 (00:26 -0500)]
Add BCJ2 support to 7-Zip reader.
SVN-Revision: 3912
Michihiro NAKAJIMA [Mon, 12 Dec 2011 02:38:42 +0000 (21:38 -0500)]
Do not refer an uninitialized or empty symlink name.
SVN-Revision: 3909
Michihiro NAKAJIMA [Mon, 12 Dec 2011 02:18:24 +0000 (21:18 -0500)]
If decompression has failed, do not return any bytes.
SVN-Revision: 3908
Michihiro NAKAJIMA [Sun, 11 Dec 2011 14:45:28 +0000 (09:45 -0500)]
Refactor the code handling of the decompression of 7-Zip reader.
* When decompressing a header, use the same function as decompressing the file contents as much as possible.
* Change the interface of decompression function so that it cloud be relatively easy to support BCJ2 or
Decryption.
* Remove an unused variable, entry_uncompressed_bytes_read.
* Rename some variables to be easily understanding for what to be used.
* Set a clear message about encrypted header and file contents, which 7-Zip reader currently does not support.
* Slightly reduce the amount of memory for a header.
SVN-Revision: 3907
Tim Kientzle [Sun, 11 Dec 2011 08:07:12 +0000 (03:07 -0500)]
FreeBSD libmd support for hash functions.
SVN-Revision: 3906
Tim Kientzle [Sun, 11 Dec 2011 08:05:59 +0000 (03:05 -0500)]
Include ripemd.h header for FreeBSD libmd.
SVN-Revision: 3905
Tim Kientzle [Sun, 11 Dec 2011 08:00:25 +0000 (03:00 -0500)]
Crypto checks are cumulative; the test program needs
to link against all crypto libs that have been found so far.
Add in probes for FreeBSD libmd hash functions.
SVN-Revision: 3904
Tim Kientzle [Sun, 11 Dec 2011 07:09:31 +0000 (02:09 -0500)]
For out-of-tree builds, the placeholder config file
here is in the build directory, specify -I. so it can
be found.
SVN-Revision: 3903
Tim Kientzle [Sun, 11 Dec 2011 06:36:19 +0000 (01:36 -0500)]
Remove some debugging printfs.
SVN-Revision: 3902
Tim Kientzle [Sun, 11 Dec 2011 06:34:10 +0000 (01:34 -0500)]
Copy -u option support to bsdtar_test and bsdcpio_test.
Fill in a variable initialization.
SVN-Revision: 3901
Tim Kientzle [Fri, 9 Dec 2011 06:39:08 +0000 (01:39 -0500)]
Add archive_read_support_format_by_code(), including documentation.
SVN-Revision: 3900
Tim Kientzle [Fri, 2 Dec 2011 06:27:16 +0000 (01:27 -0500)]
Issue 201: Make Zip tests pass without zlib.
Note: I didn't actually change the tests (apart from a few
tweaks to match slightly adjusted error codes). Instead,
I improved the Zip reader to correctly skip entry bodies
of unrecognized compression when streaming. (Key point:
the same techniques implemented earlier to properly
handle uncompressed bodies are also useful when handling
unrecognized compressed bodies.)
SVN-Revision: 3899
Tim Kientzle [Fri, 2 Dec 2011 05:55:52 +0000 (00:55 -0500)]
Instead of having read_data_skip call read_data, just inline the
necessary logic.
Next step will reshuffle this logic considerably; we should be
able to successfully skip in cases where we can't actually read the data.
SVN-Revision: 3898
Tim Kientzle [Fri, 2 Dec 2011 05:15:02 +0000 (00:15 -0500)]
Minor refactor of zip_read_data_skip.
Deal with the easy cases first.
SVN-Revision: 3897
Tim Kientzle [Fri, 2 Dec 2011 04:57:02 +0000 (23:57 -0500)]
Move the PK\007\010 marker check into each separate data
reader, since the none and deflate readers handle it so differently.
SVN-Revision: 3896
Tim Kientzle [Fri, 2 Dec 2011 04:40:42 +0000 (23:40 -0500)]
Initialize offset/size/buff once at the top of read_data.
Since offset is very consistent, we can eliminate a lot
of other places it was being set.
SVN-Revision: 3895
Tim Kientzle [Fri, 2 Dec 2011 04:36:38 +0000 (23:36 -0500)]
entry_offset and entry_uncompressed_bytes_read were synonyms, so
get rid of entry_offset.
SVN-Revision: 3894
Tim Kientzle [Fri, 2 Dec 2011 04:33:45 +0000 (23:33 -0500)]
Remove the last vestiges of this old macro.
SVN-Revision: 3893
Tim Kientzle [Thu, 1 Dec 2011 07:11:21 +0000 (02:11 -0500)]
Rework the tracking of not-yet-consumed bytes.
There are really only a few places we need to explicitly realign.
SVN-Revision: 3892