]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
14 years agoFurther robustness to the decoding lzss of RAR.
Michihiro NAKAJIMA [Thu, 4 Aug 2011 03:06:39 +0000 (23:06 -0400)] 
Further robustness to the decoding lzss of RAR.

SVN-Revision: 3532

14 years agoStop extracting a RAR file if making huffman table fails, and report it in order...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 15:24:39 +0000 (11:24 -0400)] 
Stop extracting a RAR file if making huffman table fails, and report it in order to avoid an infinity loop
at reading damaged RAR files, which is made by test_fuzz.

SVN-Revision: 3531

14 years agoFurther sanity checks and properly invoke __archive_read_ahead before __archive_read_...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 12:09:01 +0000 (08:09 -0400)] 
Further sanity checks and properly invoke __archive_read_ahead before __archive_read_consume is called when
a header size extend.

SVN-Revision: 3530

14 years agoAdd several sanity checks for a RAR header.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 10:46:16 +0000 (06:46 -0400)] 
Add several sanity checks for a RAR header.

SVN-Revision: 3529

14 years agoWhen Skipping data in a store mode, use rar->bytes_remaining instead of rar->packed_size.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 10:28:52 +0000 (06:28 -0400)] 
When Skipping data in a store mode, use rar->bytes_remaining instead of rar->packed_size.
a use of packed_size in that case will not work after archive_read_format_rar_read_data
has been called.

SVN-Revision: 3528

14 years agoCheck the return value of __archive_read_consume in decoding lzss to avoid infinity...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 09:11:31 +0000 (05:11 -0400)] 
Check the return value of __archive_read_consume in decoding lzss to avoid infinity loop in test_fuzz
because rar->bitoffset can have untrusted value when reading damaged RAR files.

SVN-Revision: 3527

14 years agoIn case reading a RAR file in a store mode, properly invoke __archive_read_consume
Michihiro NAKAJIMA [Wed, 3 Aug 2011 08:54:55 +0000 (04:54 -0400)] 
In case reading a RAR file in a store mode, properly invoke __archive_read_consume
to avoid infinity loop in test_fuzz.

SVN-Revision: 3526

14 years agoProperly check the return value of __archive_read_consume at archive_read_format_rar_...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 08:35:23 +0000 (04:35 -0400)] 
Properly check the return value of __archive_read_consume at archive_read_format_rar_read_data_skip
to avoid infinity loop in test_fuzz.

SVN-Revision: 3525

14 years agoProperly set a error message when memory allocation fails in the RAR reader.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 05:56:22 +0000 (01:56 -0400)] 
Properly set a error message when memory allocation fails in the RAR reader.

SVN-Revision: 3523

14 years agoFix a part of r3506. It broke a RAR unicode conversion.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 05:51:24 +0000 (01:51 -0400)] 
Fix a part of r3506. It broke a RAR unicode conversion.

SVN-Revision: 3522

14 years agoFix build on Visual Studio.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 05:26:15 +0000 (01:26 -0400)] 
Fix build on Visual Studio.

SVN-Revision: 3521

14 years agoMerge from trunk/r3519.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 05:17:05 +0000 (01:17 -0400)] 
Merge from trunk/r3519.

SVN-Revision: 3520

14 years agoFix the uu filter. That did not extract uuencoded data when an output file-name is...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 05:13:37 +0000 (01:13 -0400)] 
Fix the uu filter. That did not extract uuencoded data when an output file-name is very short.

SVN-Revision: 3519

14 years agoFix build failure about INTMAX_MIN and INTMAX_MAX on Windows.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 04:49:06 +0000 (00:49 -0400)] 
Fix build failure about INTMAX_MIN and INTMAX_MAX on Windows.

SVN-Revision: 3518

14 years agoCorrect lzx_le32dec.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 04:46:54 +0000 (00:46 -0400)] 
Correct lzx_le32dec.

SVN-Revision: 3517

14 years agoIn archive_string_vsprintf, increase robustness. use "(null)" when a string pointer...
Michihiro NAKAJIMA [Wed, 3 Aug 2011 04:12:43 +0000 (00:12 -0400)] 
In archive_string_vsprintf, increase robustness. use "(null)" when a string pointer is null.

SVN-Revision: 3516

14 years agoRework lzh and lzx decoding to improve its performance.
Michihiro NAKAJIMA [Wed, 3 Aug 2011 03:44:34 +0000 (23:44 -0400)] 
Rework lzh and lzx decoding to improve its performance.

SVN-Revision: 3515

14 years agoFix printing of INT(MAX|64)_MIN. In append_int we had theoretically
Colin Percival [Tue, 2 Aug 2011 12:20:40 +0000 (08:20 -0400)] 
Fix printing of INT(MAX|64)_MIN.  In append_int we had theoretically
undefined behaviour, but the code probably worked on all existing
compilers and platforms.  In format_int we could get the wrong output,
but only on files created/modified 280 billion years before the Big
Bang.

Reported by: Ralph Corderoy (via Tarsnap)

SVN-Revision: 3514

14 years agoMake sure that the argument to --strip-components is a number. Otherwise
Colin Percival [Tue, 2 Aug 2011 08:56:27 +0000 (04:56 -0400)] 
Make sure that the argument to --strip-components is a number.  Otherwise
if someone accidentally omits the argument, we'll silently eat the next
command line argument.  (GNU tar checks this, otherwise I wouldn't bother.)

Suggested by: Ralph Corderoy (via Tarsnap)

SVN-Revision: 3513

14 years agoReduce a use of memory for decoding huffman code in both lha and cab reader.
Michihiro NAKAJIMA [Mon, 1 Aug 2011 22:42:32 +0000 (18:42 -0400)] 
Reduce a use of memory for decoding huffman code in both lha and cab reader.
Its side effect significantly reduces L1 cache miss observed with cachegrind,
which is one of valgrind tools.

SVN-Revision: 3512

14 years agoFix mtree_atol16. There was a missing ++(*p), with the result that the
Colin Percival [Mon, 1 Aug 2011 16:13:32 +0000 (12:13 -0400)] 
Fix mtree_atol16.  There was a missing ++(*p), with the result that the
values "0x[1-9].*" would be mapped to INT64_MAX, "0x-[1-9].*" would be
mapped to -INT64_MAX (which is another bug; it should have been INT64_MIN),
and "0x0.*" and "0x-0.*" would result in an infinite loop.

As part of this fix, factor out the duplicated digit-or-alpha-or-ALPHA
parsing into a separate function; I'm sure this complexity was responsible
for the increment getting lost in the first place.

Reported by: Ralph Corderoy, via Tarsnap

SVN-Revision: 3511

14 years agoFix overflow handling in mtree_atol10. Prior to this commit, the value
Colin Percival [Mon, 1 Aug 2011 07:41:48 +0000 (03:41 -0400)] 
Fix overflow handling in mtree_atol10.  Prior to this commit, the value
"-9223372036854775808" (aka. -2^63 aka. INT64_MIN) will be parsed and
returned as -9223372036854775807 (aka. -INT64_MAX).

Reported by: Ralph Corderoy, via Tarsnap

SVN-Revision: 3510

14 years agoImprove the performance of the mtree bidder as uudecode bidder in case it reads a...
Michihiro NAKAJIMA [Thu, 28 Jul 2011 04:30:06 +0000 (00:30 -0400)] 
Improve the performance of the mtree bidder as uudecode bidder in case it reads a very long line.

SVN-Revision: 3509

14 years agoAllow 128K -1 bytes of extra data before uuencode data starts since the bidder allows.
Michihiro NAKAJIMA [Thu, 28 Jul 2011 04:16:37 +0000 (00:16 -0400)] 
Allow 128K -1 bytes of extra data before uuencode data starts since the bidder allows.

SVN-Revision: 3508

14 years agoImprove the performance of the uudecode bidder when reading a very long line.
Michihiro NAKAJIMA [Thu, 28 Jul 2011 03:58:35 +0000 (23:58 -0400)] 
Improve the performance of the uudecode bidder when reading a very long line.

SVN-Revision: 3507

14 years agoFix build failure on Ubuntu (with gcc 4.5.2).
Michihiro NAKAJIMA [Wed, 27 Jul 2011 07:18:32 +0000 (03:18 -0400)] 
Fix build failure on Ubuntu (with gcc 4.5.2).

SVN-Revision: 3506

14 years agoImprove test_read_format_rar for a CP932 locale which Windows can use.
Michihiro NAKAJIMA [Tue, 26 Jul 2011 02:16:47 +0000 (22:16 -0400)] 
Improve test_read_format_rar for a CP932 locale which Windows can use.

SVN-Revision: 3502

14 years agoUse assertEqualUTF8String instead of assertEqualString for comparing UTF-8 file names.
Michihiro NAKAJIMA [Tue, 26 Jul 2011 01:42:40 +0000 (21:42 -0400)] 
Use assertEqualUTF8String instead of assertEqualString for comparing UTF-8 file names.

SVN-Revision: 3501

14 years agoWindows platform cannot use a UTF-8 locale.
Michihiro NAKAJIMA [Tue, 26 Jul 2011 01:40:33 +0000 (21:40 -0400)] 
Windows platform cannot use a UTF-8 locale.

SVN-Revision: 3500

14 years agoFix build error; do not use UTF-8 strings directly in a source file since
Michihiro NAKAJIMA [Tue, 26 Jul 2011 01:36:34 +0000 (21:36 -0400)] 
Fix build error; do not use UTF-8 strings directly in a source file since
source files are compiled in several locales.

SVN-Revision: 3499

14 years agoMake sure sizes for RAR files are valid.
Andres Mejia [Fri, 22 Jul 2011 21:29:23 +0000 (17:29 -0400)] 
Make sure sizes for RAR files are valid.

SVN-Revision: 3498

14 years agoMake parsing filters unsupported instead of skipping.
Andres Mejia [Fri, 22 Jul 2011 21:29:20 +0000 (17:29 -0400)] 
Make parsing filters unsupported instead of skipping.

SVN-Revision: 3497

14 years agoVarious format string fixes, thanks to GCC.
Tim Kientzle [Fri, 22 Jul 2011 05:36:54 +0000 (01:36 -0400)] 
Various format string fixes, thanks to GCC.

SVN-Revision: 3496

14 years agoGCC-specific printf argument checks.
Tim Kientzle [Fri, 22 Jul 2011 05:04:20 +0000 (01:04 -0400)] 
GCC-specific printf argument checks.

SVN-Revision: 3495

14 years agoCatch error for all calls to read_next_symbol.
Andres Mejia [Fri, 22 Jul 2011 02:58:05 +0000 (22:58 -0400)] 
Catch error for all calls to read_next_symbol.

SVN-Revision: 3494

14 years agoFixup segfault that could be generated by corrupt compressed RAR, caught by test_fuzz.
Andres Mejia [Fri, 22 Jul 2011 02:34:23 +0000 (22:34 -0400)] 
Fixup segfault that could be generated by corrupt compressed RAR, caught by test_fuzz.

SVN-Revision: 3493

14 years agoAdd unicode test file to test_fuzz.
Andres Mejia [Fri, 22 Jul 2011 01:59:36 +0000 (21:59 -0400)] 
Add unicode test file to test_fuzz.

SVN-Revision: 3492

14 years agoImplement unicode support.
Andres Mejia [Fri, 22 Jul 2011 01:28:35 +0000 (21:28 -0400)] 
Implement unicode support.

SVN-Revision: 3491

14 years agoTest that uudecode filter won't recognize valid UUencoded
Tim Kientzle [Tue, 19 Jul 2011 05:03:17 +0000 (01:03 -0400)] 
Test that uudecode filter won't recognize valid UUencoded
data if it's preceded by 512k of data.

SVN-Revision: 3490

14 years agoWhen scanning the beginning of an ASCII text file to see if it
Tim Kientzle [Tue, 19 Jul 2011 05:02:05 +0000 (01:02 -0400)] 
When scanning the beginning of an ASCII text file to see if it
has a uuencode 'begin' sequence, only examine the first 128k.
Extend the test to verify that we don't recognize uuencoded
data with 512k of leading ASCII data.

SVN-Revision: 3489

14 years agoImprove a test for uudecode filter in case there is a very long line text(1K bytes...
Michihiro NAKAJIMA [Sun, 17 Jul 2011 22:18:42 +0000 (18:18 -0400)] 
Improve a test for uudecode filter in case there is a very long line text(1K bytes - 64K bytes)
before uuencoded data.

SVN-Revision: 3488

14 years agoFix issue 163.
Michihiro NAKAJIMA [Sun, 17 Jul 2011 15:32:52 +0000 (11:32 -0400)] 
Fix issue 163.
Correctly allocate enough memory for a input buffer saved.

SVN-Revision: 3487

14 years agoFix issue 163.
Michihiro NAKAJIMA [Sun, 17 Jul 2011 15:32:04 +0000 (11:32 -0400)] 
Fix issue 163.
Correctly allocate enough memory for a input buffer saved.

SVN-Revision: 3486

14 years agoFix build failure on Visual Studio.
Michihiro NAKAJIMA [Sun, 17 Jul 2011 14:45:37 +0000 (10:45 -0400)] 
Fix build failure on Visual Studio.

SVN-Revision: 3485

14 years agoUse uintmax_t with %ju
Tim Kientzle [Sat, 16 Jul 2011 21:12:57 +0000 (17:12 -0400)] 
Use uintmax_t with %ju

SVN-Revision: 3484

14 years agoNext iteration of RAR reader.
Tim Kientzle [Sat, 16 Jul 2011 06:54:28 +0000 (02:54 -0400)] 
Next iteration of RAR reader.

SVN-Revision: 3483

14 years ago%ju ===> uintmax_t
Tim Kientzle [Sat, 16 Jul 2011 06:53:31 +0000 (02:53 -0400)] 
%ju ===>  uintmax_t

SVN-Revision: 3482

14 years ago%ju requires uintmax_t
Tim Kientzle [Sat, 16 Jul 2011 06:53:01 +0000 (02:53 -0400)] 
%ju requires uintmax_t

SVN-Revision: 3481

14 years agoIn iso9660 writer and xar writer, always overwrite the existing file in the file...
Michihiro NAKAJIMA [Thu, 14 Jul 2011 13:39:47 +0000 (09:39 -0400)] 
In iso9660 writer and xar writer, always overwrite the existing file in the file tree
which file has the same name; it is better that front-end applications such as tar decide
how they handle that case.

SVN-Revision: 3480

14 years agoCorrect comments.
Michihiro NAKAJIMA [Thu, 14 Jul 2011 13:13:48 +0000 (09:13 -0400)] 
Correct comments.

SVN-Revision: 3479

14 years agoAdd support for a pax textended keyword, "SUN.holesdata", which describes where is
Michihiro NAKAJIMA [Tue, 12 Jul 2011 06:36:12 +0000 (02:36 -0400)] 
Add support for a pax textended keyword, "SUN.holesdata", which describes where is
data or hole in the stored contents. The pax of Solaris records the keyword when
using -x pax option which specify a pax format, and the file is sparse.

SVN-Revision: 3475

14 years agoUpdate NEWS
Tim Kientzle [Tue, 12 Jul 2011 05:59:17 +0000 (01:59 -0400)] 
Update NEWS

SVN-Revision: 3474

14 years agoTouch up the distribution list.
Tim Kientzle [Tue, 12 Jul 2011 05:50:16 +0000 (01:50 -0400)] 
Touch up the distribution list.

SVN-Revision: 3473

14 years agoRemove dead files.
Tim Kientzle [Tue, 12 Jul 2011 05:35:22 +0000 (01:35 -0400)] 
Remove dead files.
These also apparently ruffled some feathers:
http://code.google.com/p/libarchive/issues/detail?id=162
http://bugs.debian.org/614390
http://public.kitware.com/Bug/view.php?id=11885

SVN-Revision: 3472

14 years agoThe same changes of In the Xar writer, ignore ineffective path names in the Xar archive
Michihiro NAKAJIMA [Sun, 10 Jul 2011 07:59:58 +0000 (03:59 -0400)] 
The same changes of In the Xar writer, ignore ineffective path names in the Xar archive
such as "." , "/" or "../" and fix that handling. This is the same as the recent changes of
the ISO9660 writer.

SVN-Revision: 3467

14 years agoIn the ISO writer, ignore ineffective path names in the ISO9660 file system
Michihiro NAKAJIMA [Sun, 10 Jul 2011 07:42:01 +0000 (03:42 -0400)] 
In the ISO writer, ignore ineffective path names in the ISO9660 file system
such as "." , "/" or "../" and fix that handling. This is to improve r3464 changes.

SVN-Revision: 3466

14 years agoFix warnings on Visual Studio.
Michihiro NAKAJIMA [Sun, 10 Jul 2011 07:33:18 +0000 (03:33 -0400)] 
Fix warnings on Visual Studio.

SVN-Revision: 3465

14 years agoIgnore a path which looks like the top of directory name, and whose name is
Michihiro NAKAJIMA [Sat, 9 Jul 2011 23:42:59 +0000 (19:42 -0400)] 
Ignore a path which looks like the top of directory name, and whose name is
exactly "." which is the same as the root directory name of an ISO image.

SVN-Revision: 3464

14 years agoStop trimming parent directories at iso9660 writer; users will decide
Michihiro NAKAJIMA [Sat, 9 Jul 2011 23:12:34 +0000 (19:12 -0400)] 
Stop trimming parent directories at iso9660 writer; users will decide
how many components are stripped or renaming a part of path names they like.

SVN-Revision: 3463

14 years agoDo not write odd data whose size is less than 2048 bytes to
Michihiro NAKAJIMA [Sat, 9 Jul 2011 22:41:16 +0000 (18:41 -0400)] 
Do not write odd data whose size is less than 2048 bytes to
the temporary file.

SVN-Revision: 3462

14 years agoIssue 160: --strip-components now works in -c mode as well as -x and -t.
Tim Kientzle [Wed, 29 Jun 2011 04:56:26 +0000 (00:56 -0400)] 
Issue 160:  --strip-components now works in -c mode as well as -x and -t.

SVN-Revision: 3444

14 years agoSince RAR stores timestamps in localtime, we have to be a little more
Tim Kientzle [Wed, 29 Jun 2011 04:46:52 +0000 (00:46 -0400)] 
Since RAR stores timestamps in localtime, we have to be a little more
tolerant testing the returned times.

SVN-Revision: 3443

14 years agoAlways return paths that use '/' as path separator, even on Windows.
Tim Kientzle [Wed, 29 Jun 2011 04:43:11 +0000 (00:43 -0400)] 
Always return paths that use '/' as path separator, even on Windows.

SVN-Revision: 3442

14 years agoIn the fuzz test, improve the calculation of damaging bytes so as to
Michihiro NAKAJIMA [Tue, 28 Jun 2011 05:20:00 +0000 (01:20 -0400)] 
In the fuzz test, improve the calculation of damaging bytes so as to
make at least one byte damage of the sample file even if its size is less than 100 bytes.

SVN-Revision: 3440

14 years agoAdd additional a sample file of rar format to the file list of test_fuzz.
Michihiro NAKAJIMA [Tue, 28 Jun 2011 04:58:16 +0000 (00:58 -0400)] 
Add additional a sample file of rar format to the file list of test_fuzz.

SVN-Revision: 3439

14 years agoFix some segmentation fault in rar reader.
Michihiro NAKAJIMA [Tue, 28 Jun 2011 04:52:56 +0000 (00:52 -0400)] 
Fix some segmentation fault in rar reader.

SVN-Revision: 3438

14 years agoRAR format can be detected as well when using archive_read_support_format_all().
Michihiro NAKAJIMA [Tue, 28 Jun 2011 04:50:55 +0000 (00:50 -0400)] 
RAR format can be detected as well when using archive_read_support_format_all().

SVN-Revision: 3437

14 years agoIn utf8_to_unicode function, set unicode value even if it is a surrogate pair
Michihiro NAKAJIMA [Mon, 27 Jun 2011 15:26:28 +0000 (11:26 -0400)] 
In utf8_to_unicode function, set unicode value even if it is a surrogate pair
because strncat_from_utf8_to_utf8 function expect that behavior.

SVN-Revision: 3436

14 years agoFix a silly bug made by previous change: do not return a pointer address consumed.
Michihiro NAKAJIMA [Mon, 27 Jun 2011 13:24:29 +0000 (09:24 -0400)] 
Fix a silly bug made by previous change: do not return a pointer address consumed.

SVN-Revision: 3435

14 years agoarchive_string_conversion_to_charset() should be used for an archive writer.
Michihiro NAKAJIMA [Mon, 27 Jun 2011 11:59:30 +0000 (07:59 -0400)] 
archive_string_conversion_to_charset() should be used for an archive writer.

SVN-Revision: 3434

14 years agoCanonicalize some charset-name so we can detect UTF-8, UTF-16BE and CP932 even if
Michihiro NAKAJIMA [Mon, 27 Jun 2011 11:13:21 +0000 (07:13 -0400)] 
Canonicalize some charset-name so we can detect UTF-8, UTF-16BE and CP932 even if
those consist of lower alphabet characters or '-' omitted.

SVN-Revision: 3433

14 years agoFix issue 106. The original problem happned on linux platform and I fixed it onece
Michihiro NAKAJIMA [Mon, 27 Jun 2011 07:56:32 +0000 (03:56 -0400)] 
Fix issue 106. The original problem happned on linux platform and I fixed it onece
in r3277 but it was not sufficient. This change consider it could happen on other
platforms that the entry object has one sparse block and it indicates the whole file
data, which sparse block is made by other program code(not only our code).

SVN-Revision: 3432

14 years agoFirst cut at RAR support, including RARv3.
Tim Kientzle [Mon, 27 Jun 2011 00:40:08 +0000 (20:40 -0400)] 
First cut at RAR support, including RARv3.
This is currently rather limited.

SVN-Revision: 3427

14 years agoRename this test to match how other tests are named.
Tim Kientzle [Mon, 27 Jun 2011 00:30:18 +0000 (20:30 -0400)] 
Rename this test to match how other tests are named.

SVN-Revision: 3426

14 years agoIssue 153: Test failures on platforms that lack full support for
Tim Kientzle [Sun, 26 Jun 2011 17:32:14 +0000 (13:32 -0400)] 
Issue 153: Test failures on platforms that lack full support for
the various format/filter options.

SVN-Revision: 3425

14 years agoExtend the --newer-than test to verify the behavior when there's a new
Tim Kientzle [Sun, 26 Jun 2011 04:09:09 +0000 (00:09 -0400)] 
Extend the --newer-than test to verify the behavior when there's a new
file inside an old directory.  Rework the descent logic in write.c
somewhat to fix the behavior here.

SVN-Revision: 3424

14 years agoExtend the MacOS compatibility test to verify that the attribute blob
Tim Kientzle [Sat, 25 Jun 2011 23:33:15 +0000 (19:33 -0400)] 
Extend the MacOS compatibility test to verify that the attribute blob
starts with the expected bytes.
Fix the bug that this uncovered.

SVN-Revision: 3423

14 years agoExtend the old test_compat_mac_gnutar to exercise compatibility with
Tim Kientzle [Sat, 25 Jun 2011 19:30:27 +0000 (15:30 -0400)] 
Extend the old test_compat_mac_gnutar to exercise compatibility with
both Apple's hacked GNU tar (<= 10.5) and Apple's hacked bsdtar (>= 10.6).

SVN-Revision: 3422

14 years agoFix counting files read, dot not count it up when returning ARCHIVE_EOF.
Michihiro NAKAJIMA [Sat, 25 Jun 2011 08:29:08 +0000 (04:29 -0400)] 
Fix counting files read, dot not count it up when returning ARCHIVE_EOF.
Add the check of the return value of archive_file_count() into several
format reader tests.

SVN-Revision: 3421

14 years agoFix a comment about the garbage bytes of CFDATA compressed by the deflate compression.
Michihiro NAKAJIMA [Sat, 25 Jun 2011 06:34:10 +0000 (02:34 -0400)] 
Fix a comment about the garbage bytes of CFDATA compressed by the deflate compression.

SVN-Revision: 3420

14 years agoFix typo: s/chekc sum/check sum/.
Colin Percival [Thu, 23 Jun 2011 10:00:27 +0000 (06:00 -0400)] 
Fix typo: s/chekc sum/check sum/.

Submitted by: Ralph Corderoy (via Tarsnap)

SVN-Revision: 3418

14 years agoReplace a pointer to an explanation which doesn't exist by the
Colin Percival [Wed, 22 Jun 2011 08:24:41 +0000 (04:24 -0400)] 
Replace a pointer to an explanation which doesn't exist by the
explanation itself.

Submitted by: Ralph Corderoy, via Tarsnap
Explanation from: Tim Kientzle
Reviewed by: Tim Kientzle

SVN-Revision: 3414

14 years agoUse CoreServices framework for Mac OS X in configure.ac, the same thing in CMakeLists.txt
Michihiro NAKAJIMA [Tue, 21 Jun 2011 08:36:26 +0000 (04:36 -0400)] 
Use CoreServices framework for Mac OS X in configure.ac, the same thing in CMakeLists.txt
has been already changed.

SVN-Revision: 3412

14 years agoRemove unneeded code.
Michihiro NAKAJIMA [Tue, 21 Jun 2011 08:19:49 +0000 (04:19 -0400)] 
Remove unneeded code.

SVN-Revision: 3411

14 years agoDo no use random data for the contents of ISO image; it cannot create
Michihiro NAKAJIMA [Tue, 21 Jun 2011 07:57:42 +0000 (03:57 -0400)] 
Do no use random data for the contents of ISO image; it cannot create
the same size of an ISO imaige every time when using zisofs option.

SVN-Revision: 3410

14 years agoFix warnings.
Michihiro NAKAJIMA [Tue, 21 Jun 2011 07:37:53 +0000 (03:37 -0400)] 
Fix warnings.

SVN-Revision: 3409

14 years agoFix comment and style. no functional change.
Michihiro NAKAJIMA [Tue, 21 Jun 2011 07:28:32 +0000 (03:28 -0400)] 
Fix comment and style. no functional change.

SVN-Revision: 3408

14 years agoThis is the final step to reduce use of both read() and write() system-calls in the...
Michihiro NAKAJIMA [Tue, 21 Jun 2011 07:17:14 +0000 (03:17 -0400)] 
This is the final step to reduce use of both read() and write() system-calls in the iso9660 writer.
    - Stop reading the contents of each file from the temporary file with read().
    - Read the block of all file contents instead, and then write it to next stream.

SVN-Revision: 3407

14 years agoFix making a bootable iso image with zisofs option.
Michihiro NAKAJIMA [Mon, 20 Jun 2011 12:49:13 +0000 (08:49 -0400)] 
Fix making a bootable iso image with zisofs option.

SVN-Revision: 3406

14 years agoThis is second step to reduce use of both read() and write() system-calls in the...
Michihiro NAKAJIMA [Mon, 20 Jun 2011 07:53:18 +0000 (03:53 -0400)] 
This is second step to reduce use of both read() and write() system-calls in the iso9660 writer.
  - Copy file contents to wbuff, 64K buffer, and then write wbuff data with write() syscall when
    the buffer is full.
  - Improve wbuff handling to be able to be used for zisofs accordingly.
  - Stop using wbuff as read buffer in setup_boot_information() function.

SVN-Revision: 3405

14 years agoThis is first step to reduce use of both read() and write() system-calls in the iso96...
Michihiro NAKAJIMA [Sun, 19 Jun 2011 11:32:03 +0000 (07:32 -0400)] 
This is first step to reduce use of both read() and write() system-calls in the iso9660 writer.
  - Use only one temporary file to be simple structure.
  - When enabling zisofs, almost all files except a small(<2048 bytes) file are, consequently,
    always compressed even if it is a boot file. The boot file will be uncompressed later.
  - Write those files to the temporary file by 2048 bytes, though currently this is no effect.

SVN-Revision: 3404

14 years agoShift away "tar:utf8type=libarchive2x" option which is to read a pax file made with
Michihiro NAKAJIMA [Thu, 16 Jun 2011 09:14:17 +0000 (05:14 -0400)] 
Shift away "tar:utf8type=libarchive2x" option which is to read a pax file made with
libarchive 2.x in a wrong assumption of a wchar_t form in non UTF-8 locale;
use "tar:compat-2x" option instead.
And also add ""cpio:compat-2x" and "zip:compat-2x" to read filenames,
which are converted with CP_ACP, in those format on Windows plaform,
although you can use "hdrcharset=CP_ACP" option.

For posix like system:
  - use "tar:compat-2x" option when you get incorrect filenames from pax
    files made with bsdtar/libarchive 2.x.

For Windows system:
  - use "tar:compat-2x", "cpio:compat-2x" and "zip:compat-2x" options
    when you get incorrect filnames from those archives(except pax format)
    made with bsdtar/libarchive 2.x.

SVN-Revision: 3403

14 years agoIn the pax writer, do not get a filename dependent on current locale unless getting...
Michihiro NAKAJIMA [Wed, 15 Jun 2011 10:10:01 +0000 (06:10 -0400)] 
In the pax writer, do not get a filename dependent on current locale unless getting a filename in UTF-8 fails.

SVN-Revision: 3402

14 years agoTry to use "SJIS" character-set if use of "CP932" failed and a best effort bit is on,
Michihiro NAKAJIMA [Mon, 13 Jun 2011 08:51:54 +0000 (04:51 -0400)] 
Try to use "SJIS" character-set if use of "CP932" failed and a best effort bit is on,
because all of implements of iconv do not support "CP932" character-set and
"SJIS" character-set is widely supported more than "CP932".

SVN-Revision: 3401

14 years agoClean up style; no functional change.
Michihiro NAKAJIMA [Thu, 9 Jun 2011 08:50:27 +0000 (04:50 -0400)] 
Clean up style; no functional change.

SVN-Revision: 3400

14 years agoRework enabling a operation to a wrong UTF-8 string made with Libarchive 2.x.
Michihiro NAKAJIMA [Wed, 8 Jun 2011 13:38:02 +0000 (09:38 -0400)] 
Rework enabling a operation to a wrong UTF-8 string made with Libarchive 2.x.

SVN-Revision: 3399

14 years agoSet SCONV_WIN_CP flag so that we use Windows API for UTF-16BE conversion
Michihiro NAKAJIMA [Tue, 7 Jun 2011 15:49:22 +0000 (11:49 -0400)] 
Set SCONV_WIN_CP flag so that we use Windows API for UTF-16BE conversion
because IsValidCodePage(CP_UTF16BE) fails but we can handle it with byte-swapping.

SVN-Revision: 3398

14 years agoProperly handle SCONV_BEST_EFFORT flag when converting UTF-16BE.
Michihiro NAKAJIMA [Tue, 7 Jun 2011 14:56:05 +0000 (10:56 -0400)] 
Properly handle SCONV_BEST_EFFORT flag when converting UTF-16BE.

SVN-Revision: 3397

14 years agoRemove unneeded conversion code translation a string from a UTF-8 form to
Michihiro NAKAJIMA [Tue, 7 Jun 2011 11:14:19 +0000 (07:14 -0400)] 
Remove unneeded conversion code translation a string from a UTF-8 form to
the current locale because it will not happen without conversion errors.

SVN-Revision: 3396

14 years agoMake sure plenty size to an output buffer for a replacement character in UTF-8.
Michihiro NAKAJIMA [Tue, 7 Jun 2011 07:25:19 +0000 (03:25 -0400)] 
Make sure plenty size to an output buffer for a replacement character in UTF-8.

SVN-Revision: 3395