]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoGet 7zip writer to compile on systems that lack liblzma.
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

14 years agoRefactor the UID/GID lookup in write_disk so that it can be
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

14 years agoFix a string conversion test to work on Apple.
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

14 years agoAdd 7-Zip writer.
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

14 years agoEnable archive_string_conversion_to_charset to handle UTF-16LE.
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

14 years agoFix reading times in 7-Zip archives when the time data is not of all files.
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

14 years agoImprove mtree error handling.
Tim Kientzle [Sun, 18 Dec 2011 18:56:58 +0000 (13:56 -0500)] 
Improve mtree error handling.

SVN-Revision: 3938

14 years agoFix the mismatch of FOREACH and ENDFOREACH in CMakeLists.txt
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

14 years agoFix typo.
Michihiro NAKAJIMA [Sun, 18 Dec 2011 12:10:43 +0000 (07:10 -0500)] 
Fix typo.

SVN-Revision: 3936

14 years agoDo not assume that even if __STDC_ISO_10646__ is defined UTF-8 characters can
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

14 years agoIf a file type is directory, make sure the tail of the file name is '/'.
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

14 years agoCorrectly handle symbolic files in 7-Zip archives.
Michihiro NAKAJIMA [Sat, 17 Dec 2011 19:27:11 +0000 (14:27 -0500)] 
Correctly handle symbolic files in 7-Zip archives.

SVN-Revision: 3933

14 years agoAdjust a 7zip test to the change of r3929.
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

14 years agoInclude some basic notes about RAR format support in libarchive.
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

14 years agoSlightly improve robustness against currupted 7-Zip archive files.
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

14 years agoThe High 16 bytes of attributes is a posix file mode. so we can get a proper file...
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

14 years agoRework the crypto probe to check a list of algorithms for
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

14 years agoIn autoconf configure, probe OpenSSL first, then libmd.
Tim Kientzle [Sat, 17 Dec 2011 07:21:53 +0000 (02:21 -0500)] 
In autoconf configure, probe OpenSSL first, then libmd.

SVN-Revision: 3927

14 years agoDon't use libmd and OpenSSL at the same time; they
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

14 years agoRemove an unneeded variable.
Michihiro NAKAJIMA [Thu, 15 Dec 2011 08:59:58 +0000 (03:59 -0500)] 
Remove an unneeded variable.

SVN-Revision: 3925

14 years agoEnable 7-Zip reader to handle both BCJ and BCJ2 with all encoding types.
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

14 years agoUpdate comments.
Michihiro NAKAJIMA [Wed, 14 Dec 2011 05:23:51 +0000 (00:23 -0500)] 
Update comments.

SVN-Revision: 3923

14 years agoFix typo. s/reamining/remaining/g
Michihiro NAKAJIMA [Wed, 14 Dec 2011 05:06:37 +0000 (00:06 -0500)] 
Fix typo. s/reamining/remaining/g

SVN-Revision: 3922

14 years agoAllocate memory for an extracted sub-stream before extracting it because we already...
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

14 years agoMore mode_t fallout from Solaris
Joerg Sonnenberger [Wed, 14 Dec 2011 00:24:48 +0000 (19:24 -0500)] 
More mode_t fallout from Solaris

SVN-Revision: 3920

14 years agoCast explicit to u_int to appeace gcc
Joerg Sonnenberger [Wed, 14 Dec 2011 00:14:13 +0000 (19:14 -0500)] 
Cast explicit to u_int to appeace gcc

SVN-Revision: 3919

14 years agoProperly check if EXT2_IOC_GETFLAGS is actually usable.
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

14 years agoFix compiler warning "array subscript is above array bounds."
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

14 years agoImprove RAR SFX archives detection; RAR reader can detect ELF file's SFX.
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

14 years agoImprove 7-Zip SFX archives detection; 7-Zip reader can detect ELF file's SFX.
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

14 years agoAvoid build failure on llvm.
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:57:15 +0000 (00:57 -0500)] 
Avoid build failure on llvm.

SVN-Revision: 3914

14 years agoAdd BCJ2 sample files to Makefile.am
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:32:34 +0000 (00:32 -0500)] 
Add BCJ2 sample files to Makefile.am

SVN-Revision: 3913

14 years agoAdd BCJ2 support to 7-Zip reader.
Michihiro NAKAJIMA [Tue, 13 Dec 2011 05:26:18 +0000 (00:26 -0500)] 
Add BCJ2 support to 7-Zip reader.

SVN-Revision: 3912

14 years agoDo not refer an uninitialized or empty symlink name.
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

14 years agoIf decompression has failed, do not return any bytes.
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

14 years agoRefactor the code handling of the decompression of 7-Zip reader.
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

14 years agoFreeBSD libmd support for hash functions.
Tim Kientzle [Sun, 11 Dec 2011 08:07:12 +0000 (03:07 -0500)] 
FreeBSD libmd support for hash functions.

SVN-Revision: 3906

14 years agoInclude ripemd.h header for FreeBSD libmd.
Tim Kientzle [Sun, 11 Dec 2011 08:05:59 +0000 (03:05 -0500)] 
Include ripemd.h header for FreeBSD libmd.

SVN-Revision: 3905

14 years agoCrypto checks are cumulative; the test program needs
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

14 years agoFor out-of-tree builds, the placeholder config file
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

14 years agoRemove some debugging printfs.
Tim Kientzle [Sun, 11 Dec 2011 06:36:19 +0000 (01:36 -0500)] 
Remove some debugging printfs.

SVN-Revision: 3902

14 years agoCopy -u option support to bsdtar_test and bsdcpio_test.
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

14 years agoAdd archive_read_support_format_by_code(), including documentation.
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

14 years agoIssue 201: Make Zip tests pass without zlib.
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

14 years agoInstead of having read_data_skip call read_data, just inline the
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

14 years agoMinor refactor of zip_read_data_skip.
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

14 years agoMove the PK\007\010 marker check into each separate data
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

14 years agoInitialize offset/size/buff once at the top of read_data.
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

14 years agoentry_offset and entry_uncompressed_bytes_read were synonyms, so
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

14 years agoRemove the last vestiges of this old macro.
Tim Kientzle [Fri, 2 Dec 2011 04:33:45 +0000 (23:33 -0500)] 
Remove the last vestiges of this old macro.

SVN-Revision: 3893

14 years agoRework the tracking of not-yet-consumed bytes.
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

14 years agoRefactor the Zip header read:
Tim Kientzle [Thu, 1 Dec 2011 06:35:11 +0000 (01:35 -0500)] 
Refactor the Zip header read:
 * Move some common initialization into read_local_file_header
 * Ensure that the file pointer is always pointing to the start of
   the local file header when calling read_local_file_header
 * Merge old search_next_signature into streamable_read_header
   and simplify the resulting code

SVN-Revision: 3891

14 years agoCheck the PK\003\004 signature within zip_local_file_header.
Tim Kientzle [Thu, 1 Dec 2011 06:07:40 +0000 (01:07 -0500)] 
Check the PK\003\004 signature within zip_local_file_header.
Remove an extraneous variable.

SVN-Revision: 3890

14 years agoIf we lack libz, just drop the compression selector.
Tim Kientzle [Thu, 1 Dec 2011 06:04:16 +0000 (01:04 -0500)] 
If we lack libz, just drop the compression selector.

SVN-Revision: 3889

14 years agoIssue 201: Since we're using the seeking Zip reader here, we only
Tim Kientzle [Thu, 1 Dec 2011 05:35:22 +0000 (00:35 -0500)] 
Issue 201: Since we're using the seeking Zip reader here, we only
have to suppress the actual read if we lack libz.  We
don't expect an error when reading the next header.

SVN-Revision: 3888

14 years agoSet a clear error message about BCJ2.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 09:15:59 +0000 (04:15 -0500)] 
Set a clear error message about BCJ2.

SVN-Revision: 3887

14 years agoUpdate comments in 7-Zip reader.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 08:47:51 +0000 (03:47 -0500)] 
Update comments in 7-Zip reader.

SVN-Revision: 3886

14 years agoFix build failure without liblzma. A change of r3884 made that.
Michihiro NAKAJIMA [Wed, 30 Nov 2011 03:52:46 +0000 (22:52 -0500)] 
Fix build failure without liblzma. A change of r3884 made that.

SVN-Revision: 3885

14 years agoEnable BCJ + LZMA1 in the 7-Zip reader.
Michihiro NAKAJIMA [Tue, 29 Nov 2011 14:52:15 +0000 (09:52 -0500)] 
Enable BCJ + LZMA1 in the 7-Zip reader.

SVN-Revision: 3884

14 years agoIf ENABLE_ICONV is OFF, clean up ICONV variables in CACHE in case ENABLE_ICONV is...
Michihiro NAKAJIMA [Mon, 28 Nov 2011 23:27:16 +0000 (18:27 -0500)] 
If ENABLE_ICONV is OFF, clean up ICONV variables in CACHE in case ENABLE_ICONV is changed from ON to OFF.
That remaining variables caused build failure.

SVN-Revision: 3883

14 years agoFix some tests failure on using iconv on Windows.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 23:05:51 +0000 (18:05 -0500)] 
Fix some tests failure on using iconv on Windows.

SVN-Revision: 3882

14 years agoAdd a 7-Zip PPMd sample file into test_fuzz entries.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 12:30:19 +0000 (07:30 -0500)] 
Add a 7-Zip PPMd sample file into test_fuzz entries.

SVN-Revision: 3881

14 years agoAdd support for PPMd.
Michihiro NAKAJIMA [Mon, 28 Nov 2011 07:47:23 +0000 (02:47 -0500)] 
Add support for PPMd.

SVN-Revision: 3880

14 years agoLibarchive 3.0.1b TEST release v3.0.1b
Tim Kientzle [Sun, 27 Nov 2011 22:05:37 +0000 (17:05 -0500)] 
Libarchive 3.0.1b TEST release

SVN-Revision: 3879

14 years agoUnbreak build.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 14:10:02 +0000 (09:10 -0500)] 
Unbreak build.

SVN-Revision: 3866

14 years agoSimplify 7-Zip codec ID handing.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 13:22:55 +0000 (08:22 -0500)] 
Simplify 7-Zip codec ID handing.

SVN-Revision: 3865

14 years agoEliminate warnings on Visual Studio.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:50:18 +0000 (06:50 -0500)] 
Eliminate warnings on Visual Studio.

SVN-Revision: 3864

14 years agoReplace "7Zip" by "7-Zip".
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:47:43 +0000 (06:47 -0500)] 
Replace "7Zip" by "7-Zip".

SVN-Revision: 3863

14 years agoThe memory leaks I fixed in r3854 happened when liblzma verion < 5.0.3
Michihiro NAKAJIMA [Sun, 27 Nov 2011 11:17:12 +0000 (06:17 -0500)] 
The memory leaks I fixed in r3854 happened when liblzma verion < 5.0.3

SVN-Revision: 3862

14 years agoAdd support for 7-Zip SFX archive files.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 10:42:13 +0000 (05:42 -0500)] 
Add support for 7-Zip SFX archive files.

SVN-Revision: 3861

14 years agoRemove unneeded statements.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 06:08:48 +0000 (01:08 -0500)] 
Remove unneeded statements.

SVN-Revision: 3860

14 years agoUpdate NEWS with recent changes.
Tim Kientzle [Sun, 27 Nov 2011 05:56:17 +0000 (00:56 -0500)] 
Update NEWS with recent changes.

SVN-Revision: 3859

14 years agoarchive_string_sprintf (used by archive_set_error) doesn't support
Tim Kientzle [Sun, 27 Nov 2011 05:39:53 +0000 (00:39 -0500)] 
archive_string_sprintf (used by archive_set_error) doesn't support
field-width modifiers, so remove those.

SVN-Revision: 3856

14 years agoCorrect a bit flag check. do not confuse SCONV_FROM_UTF16BE and SCONV_FROM_UTF16LE.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 05:05:44 +0000 (00:05 -0500)] 
Correct a bit flag check. do not confuse SCONV_FROM_UTF16BE and SCONV_FROM_UTF16LE.

SVN-Revision: 3855

14 years agoFix memory leaks.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 03:44:07 +0000 (22:44 -0500)] 
Fix memory leaks.

SVN-Revision: 3854

14 years agoFix build failure on linux.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 03:10:44 +0000 (22:10 -0500)] 
Fix build failure on linux.

SVN-Revision: 3852

14 years agoAdd support for 7-Zip.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 00:58:45 +0000 (19:58 -0500)] 
Add support for 7-Zip.
This new 7Zip reader supports COPY,Deflate,BZ2,LZMA and LZMA2.
This also supports BCJ + LZMA2, DELTA + LZMA and DELTA + LZMA2.
(BCJ + LZMA is not supported, there is some problems to support it.)

This 7Zip reader cannot work on stream because of its format:
its header is placed at the bottom of the archive file, so we
have to call seek().

SVN-Revision: 3844

14 years agoSupport UTF-16LE for archive_string for reading from an archive.
Michihiro NAKAJIMA [Sun, 27 Nov 2011 00:45:24 +0000 (19:45 -0500)] 
Support UTF-16LE for archive_string for reading from an archive.
7Zip reader will use this.

SVN-Revision: 3843

14 years agoInclude some omitted files.
Tim Kientzle [Sat, 26 Nov 2011 20:33:28 +0000 (15:33 -0500)] 
Include some omitted files.

SVN-Revision: 3842

14 years agor3839 broken length-at-end handling; if we're using length-at-end semantics,
Tim Kientzle [Sat, 26 Nov 2011 07:17:39 +0000 (02:17 -0500)] 
r3839 broken length-at-end handling; if we're using length-at-end semantics,
we can't limit to the advertised size.

SVN-Revision: 3841

14 years agoAdd a -u (until failure) option to libarchive_test to make
Tim Kientzle [Sat, 26 Nov 2011 07:01:34 +0000 (02:01 -0500)] 
Add a -u (until failure) option to libarchive_test to make
it easier to run tests continuously in a loop.

SVN-Revision: 3840

14 years agoWhen reading deflate data, we should still treat the "compressed size"
Tim Kientzle [Sat, 26 Nov 2011 07:00:43 +0000 (02:00 -0500)] 
When reading deflate data, we should still treat the "compressed size"
value as a limit instead of assuming the deflate stream will agree.
This fixes an internal assertion failure when trying to read certain
inconsistent Zip archives.

SVN-Revision: 3839

14 years agoFail if CE size/offset doesn't lie within the current block.
Tim Kientzle [Sat, 26 Nov 2011 06:58:14 +0000 (01:58 -0500)] 
Fail if CE size/offset doesn't lie within the current block.

SVN-Revision: 3838

14 years agoFurther the robustness of the ISO reader against corrupted ISO images.
Michihiro NAKAJIMA [Thu, 24 Nov 2011 16:10:09 +0000 (11:10 -0500)] 
Further the robustness of the ISO reader against corrupted ISO images.
 - Do not allow a negative location when the file is not empty since
   it's too large and it will makes a negative file offset, which the
   ISO reader dose not expect to use the offset for non empty files at all.

SVN-Revision: 3837

14 years agoIssue 152: With a little work, we actually can extract
Tim Kientzle [Thu, 24 Nov 2011 08:56:20 +0000 (03:56 -0500)] 
Issue 152:  With a little work, we actually can extract
this type of archive even with the streaming reader.

The end-of-data marker used with length-at-end storage
is actually more distinctive than I had at first thought.
This commit changes the streaming reader to look
for the end-of-data marker when scanning uncompressed
bodies.

SVN-Revision: 3836

14 years agoIssue 199: Improve robustness against corrupted ISO images.
Michihiro NAKAJIMA [Thu, 24 Nov 2011 04:03:55 +0000 (23:03 -0500)] 
Issue 199: Improve robustness against corrupted ISO images.
  - Back out r3823. it was not insufficient for such corrupted ISO images.
  - Check "RE" extension strictly: stop just clearing "RE" extension
    as if it were not defined.
  - Check "CL" extension strictly:
    * "CL" does not point at itself.
    * "CL" does not point at its parents.
    * A directory file cannot have "CL" extension.
    * A file which has "CL" extension is not on the top level of
      a directory tree.

SVN-Revision: 3835

14 years agoIssue 152: Now that we have a seeking Zip reader that understands
Tim Kientzle [Wed, 23 Nov 2011 09:15:30 +0000 (04:15 -0500)] 
Issue 152:  Now that we have a seeking Zip reader that understands
Central Directory, we can take the sample Zip file from this issue
and build a test around it.

This mostly involves cleaning up the handling of data that appears
in both the central directory and the local file header.  In
particular, some writers set crc and size fields to zero in the
local file header for no apparent reason.  Fixing this also changes
a few tests that assumed the Zip reader didn't always have accurate
file information.  It now does have accurate file information
from the central directory in the seek case.

SVN-Revision: 3834

14 years agoWhen we do an implicit data-skip during a header request, be
Tim Kientzle [Wed, 23 Nov 2011 07:47:46 +0000 (02:47 -0500)] 
When we do an implicit data-skip during a header request, be
a little more careful about errors:
  * FATAL during the data-skip is very bad (obviously)
  * EOF during the data-skip is very bad (EOF should only ever be
    returned by next-header)
  * EOF from the header fetch always has to be returned, even if we
    drop a warning to do so.  (In theory, we could defer the warning
    until close, but that's a little weird, too.)
  * Otherwise, return whichever is worst.

SVN-Revision: 3833

14 years agoNew seeking Zip reader does read file modes.
Tim Kientzle [Tue, 22 Nov 2011 06:28:51 +0000 (01:28 -0500)] 
New seeking Zip reader does read file modes.

SVN-Revision: 3832

14 years agoRefactor Zip read tests to exercise both seeking and streaming readers.
Tim Kientzle [Tue, 22 Nov 2011 06:27:48 +0000 (01:27 -0500)] 
Refactor Zip read tests to exercise both seeking and streaming readers.

SVN-Revision: 3831

14 years agoExtend test_write_format_zip to use both streaming and seeking zip readers when
Tim Kientzle [Tue, 22 Nov 2011 06:10:41 +0000 (01:10 -0500)] 
Extend test_write_format_zip to use both streaming and seeking zip readers when
verifying archive by reading it back.

SVN-Revision: 3830

14 years agoExtend empty zip writing test to also verify that we correctly read
Tim Kientzle [Tue, 22 Nov 2011 05:48:29 +0000 (00:48 -0500)] 
Extend empty zip writing test to also verify that we correctly read
these empty zip archives, with both the streaming and the seeking reader.

SVN-Revision: 3829

14 years agoComments...
Tim Kientzle [Tue, 22 Nov 2011 05:32:59 +0000 (00:32 -0500)] 
Comments...

SVN-Revision: 3828

14 years agoImprove LZMA detection on Windows.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 06:01:41 +0000 (01:01 -0500)] 
Improve LZMA detection on Windows.

SVN-Revision: 3827

14 years agoCast away __la_lseek(), use _lseeki64() instead.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 05:26:06 +0000 (00:26 -0500)] 
Cast away __la_lseek(), use _lseeki64() instead.
There was any difference between our __la_lseek() and _lseeki64().

SVN-Revision: 3826

14 years agoAdd wchar_t filename support for archive_{read,write}_open_filename().
Michihiro NAKAJIMA [Mon, 21 Nov 2011 04:20:53 +0000 (23:20 -0500)] 
Add wchar_t filename support for archive_{read,write}_open_filename().
It would be useful for an internationalization programing on Windows.

SVN-Revision: 3825

14 years agoMerge r3823 from trunk for issue 199.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 02:10:57 +0000 (21:10 -0500)] 
Merge r3823 from trunk for issue 199.

SVN-Revision: 3824

14 years agoFix issue 199; improve robustness to corrupted ISO images.
Michihiro NAKAJIMA [Mon, 21 Nov 2011 02:08:33 +0000 (21:08 -0500)] 
Fix issue 199; improve robustness to corrupted ISO images.

SVN-Revision: 3823

14 years agoTry to decrease the performance hit of seeking during the bid phase.
Tim Kientzle [Mon, 21 Nov 2011 00:52:32 +0000 (19:52 -0500)] 
Try to decrease the performance hit of seeking during the bid phase.

Tell each bidder about the best bid so far so it can decide
to do nothing.  Reorder support_format_all so formats
with relatively inexpensive bidders will run first.

SVN-Revision: 3822

14 years agoRemove an outdated comment.
Tim Kientzle [Mon, 21 Nov 2011 00:13:23 +0000 (19:13 -0500)] 
Remove an outdated comment.

SVN-Revision: 3821