]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agoFix memory leaks in the cab reader.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 03:12:11 +0000 (23:12 -0400)] 
Fix memory leaks in the cab reader.

SVN-Revision: 3584

15 years agoFurther plug memory leaks made by reading a broken file.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 02:56:36 +0000 (22:56 -0400)] 
Further plug memory leaks made by reading a broken file.

SVN-Revision: 3583

15 years agoPlug remaining memory leaks made by reading a broken file in the RAR reader.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 02:36:59 +0000 (22:36 -0400)] 
Plug remaining memory leaks made by reading a broken file in the RAR reader.

SVN-Revision: 3582

15 years agoPlug memory leaks in the RAR reader.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 02:25:07 +0000 (22:25 -0400)] 
Plug memory leaks in the RAR reader.

SVN-Revision: 3581

15 years agoRemove redundant code about EOF in RAR reader.
Michihiro NAKAJIMA [Wed, 10 Aug 2011 01:41:32 +0000 (21:41 -0400)] 
Remove redundant code about EOF in RAR reader.

SVN-Revision: 3580

15 years agoDo not go on extracting ppmd after a ppmd context was freed.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 16:03:36 +0000 (12:03 -0400)] 
Do not go on extracting ppmd after a ppmd context was freed.
This case happend when reading a broken RAR file.

SVN-Revision: 3579

15 years agoReduce L1,L2 cache miss in the rar reader.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 14:23:21 +0000 (10:23 -0400)] 
Reduce L1,L2 cache miss in the rar reader.
A use of large memory(over 1M bytes) for an output buffer makes
a lot of cache misses, so we should eliminate it as possible as we can.

SVN-Revision: 3578

15 years agoReduce the sum of a calling of write system-call in extracting RAR file.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 11:56:28 +0000 (07:56 -0400)] 
Reduce the sum of a calling of write system-call in extracting RAR file.
For example, extracting test_read_format_rar_ppmd_lzss_conversion.rar.uu:
The sum came down from 62947 to 60.

SVN-Revision: 3577

15 years agoImprove lzss_emit_match() to be faster than previous version.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 08:06:39 +0000 (04:06 -0400)] 
Improve lzss_emit_match() to be faster than previous version.
This cahnge makes user CPU time less about 40% when extracting
test_read_format_rar_ppmd_lzss_conversion.rar.uu.
This idea from our lha reader.

SVN-Revision: 3576

15 years agoUse zlib's crc32 function if available.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 06:15:32 +0000 (02:15 -0400)] 
Use zlib's crc32 function if available.

SVN-Revision: 3575

15 years agoImplement a CRC check of uncompressed data of a RAR file.
Michihiro NAKAJIMA [Tue, 9 Aug 2011 05:51:00 +0000 (01:51 -0400)] 
Implement a CRC check of uncompressed data of a RAR file.

SVN-Revision: 3574

15 years agoModify ppmd7 code to minimize symbols leaked into the global name space.
Andres Mejia [Tue, 9 Aug 2011 03:27:24 +0000 (23:27 -0400)] 
Modify ppmd7 code to minimize symbols leaked into the global name space.
Only one extra symbol is add, __archive_ppmd7_functions, which is a global
struct carrying function pointers to ppmd7 functions.

SVN-Revision: 3573

15 years agoDon't leak PPMD7_kExpEscape into global symbol space.
Andres Mejia [Tue, 9 Aug 2011 00:09:33 +0000 (20:09 -0400)] 
Don't leak PPMD7_kExpEscape into global symbol space.

SVN-Revision: 3572

15 years agoAdd proper locations where reference files can be found for bsdtar and bsdcpio tests.
Andres Mejia [Mon, 8 Aug 2011 23:30:33 +0000 (19:30 -0400)] 
Add proper locations where reference files can be found for bsdtar and bsdcpio tests.

SVN-Revision: 3571

15 years agoAdd missing reference test files for inclusion in tarball.
Andres Mejia [Mon, 8 Aug 2011 23:00:13 +0000 (19:00 -0400)] 
Add missing reference test files for inclusion in tarball.

SVN-Revision: 3570

15 years agoFix generation of tarball.
Andres Mejia [Mon, 8 Aug 2011 22:44:57 +0000 (18:44 -0400)] 
Fix generation of tarball.

SVN-Revision: 3569

15 years agoRename archive_ppmd*.h headers to archive_ppmd*private.h.
Andres Mejia [Mon, 8 Aug 2011 22:39:06 +0000 (18:39 -0400)] 
Rename archive_ppmd*.h headers to archive_ppmd*private.h.
Use private instead of internal as all other private headers end in private.h.

SVN-Revision: 3568

15 years agoProperly check a header CRC to avoid reading a broken header and extracting
Michihiro NAKAJIMA [Mon, 8 Aug 2011 15:07:42 +0000 (11:07 -0400)] 
Properly check a header CRC to avoid reading a broken header and extracting
file data based on its unreliable parameters such as a compressed size or
an uncompressed size.

SVN-Revision: 3567

15 years agoFix a part of r3559. Correct a condition of realloc() failure.
Michihiro NAKAJIMA [Mon, 8 Aug 2011 13:53:40 +0000 (09:53 -0400)] 
Fix a part of r3559. Correct a condition of realloc() failure.

SVN-Revision: 3566

15 years agoKill the possibility that a huffman table can be made in no available
Michihiro NAKAJIMA [Mon, 8 Aug 2011 12:45:13 +0000 (08:45 -0400)] 
Kill the possibility that a huffman table can be made in no available
bit lengths, which happens only when reading a broken file.

SVN-Revision: 3565

15 years agoSanity check to a copy length of decoded data in order not to cause
Michihiro NAKAJIMA [Mon, 8 Aug 2011 11:08:54 +0000 (07:08 -0400)] 
Sanity check to a copy length of decoded data in order not to cause
a segmentation fault when reading a broken RAR file.

SVN-Revision: 3564

15 years agoAdd a check of remaining bits in the cache buffer of a bit reader;
Michihiro NAKAJIMA [Mon, 8 Aug 2011 08:57:33 +0000 (04:57 -0400)] 
Add a check of remaining bits in the cache buffer of a bit reader;
r3560 was not enough for several LHa files.

SVN-Revision: 3563

15 years agoGive __archive_read_ahead a correct header size. there was a problm when
Michihiro NAKAJIMA [Mon, 8 Aug 2011 08:24:22 +0000 (04:24 -0400)] 
Give __archive_read_ahead a correct header size. there was a problm when
reading a large size of lha archive file.

SVN-Revision: 3562

15 years agoFix a bug in lha reader. Give plenty bits to a pattern table.
Michihiro NAKAJIMA [Mon, 8 Aug 2011 08:15:09 +0000 (04:15 -0400)] 
Fix a bug in lha reader. Give plenty bits to a pattern table.
12 bits was too short for a bit length of the pattern table.

SVN-Revision: 3561

15 years agoFix a bug in lha reader. Correctly read remaining bits which are close to the end...
Michihiro NAKAJIMA [Mon, 8 Aug 2011 08:10:56 +0000 (04:10 -0400)] 
Fix a bug in lha reader. Correctly read remaining bits which are close to the end of data.

SVN-Revision: 3560

15 years agoProperly check the result of realloc() in order not to cause a segmentation faultwhen...
Michihiro NAKAJIMA [Mon, 8 Aug 2011 03:33:23 +0000 (23:33 -0400)] 
Properly check the result of realloc() in order not to cause a segmentation faultwhen reading a broken RAR file.

SVN-Revision: 3559

15 years agoendian.h and sys/endian.h, which I added to use in r3515, are no longer needed.
Michihiro NAKAJIMA [Mon, 8 Aug 2011 02:42:10 +0000 (22:42 -0400)] 
endian.h and sys/endian.h, which I added to use in r3515, are no longer needed.

SVN-Revision: 3558

15 years agoAdd basic test for rar file with binary data.
Andres Mejia [Mon, 8 Aug 2011 00:20:37 +0000 (20:20 -0400)] 
Add basic test for rar file with binary data.

SVN-Revision: 3557

15 years agoProvide better test for ppmd lzss conversions in RAR files.
Andres Mejia [Sun, 7 Aug 2011 22:14:31 +0000 (18:14 -0400)] 
Provide better test for ppmd lzss conversions in RAR files.
This would test fixes in r3555 and r3552.

SVN-Revision: 3556

15 years agoOnly call rar_br_preparation once.
Andres Mejia [Sun, 7 Aug 2011 21:55:23 +0000 (17:55 -0400)] 
Only call rar_br_preparation once.

SVN-Revision: 3555

15 years agoPartial merge of r2431 from trunk: Retry writes on EINTR.
Tim Kientzle [Sun, 7 Aug 2011 17:34:20 +0000 (13:34 -0400)] 
Partial merge of r2431 from trunk:  Retry writes on EINTR.
This should fix the SIGINT handler in bsdtar.
Note:  The rest of r2431 can't be merged, since it interacts
with a big write-side rearchitecture.

SVN-Revision: 3554

15 years agoMake sure amount of bits needed is read ahead.
Andres Mejia [Sun, 7 Aug 2011 17:21:17 +0000 (13:21 -0400)] 
Make sure amount of bits needed is read ahead.

SVN-Revision: 3553

15 years agoFix problem with reading RAR files that convert from lzss block to ppmd block.
Andres Mejia [Sun, 7 Aug 2011 16:05:47 +0000 (12:05 -0400)] 
Fix problem with reading RAR files that convert from lzss block to ppmd block.

SVN-Revision: 3552

15 years agoAdd a flag to check if PPMd is initialized in order not to cause
Michihiro NAKAJIMA [Sun, 7 Aug 2011 14:00:34 +0000 (10:00 -0400)] 
Add a flag to check if PPMd is initialized in order not to cause
a segmentation fault when reading a broken RAR file.

SVN-Revision: 3551

15 years agoEffectively read compressed data into a cache buffer of bit readers
Michihiro NAKAJIMA [Sun, 7 Aug 2011 08:07:26 +0000 (04:07 -0400)] 
Effectively read compressed data into a cache buffer of bit readers
without bytes-swap functions. A use of our byte-swap functions needed
extra bit shifts at bit readers.

SVN-Revision: 3550

15 years agoPlace source in proper alphabetical order.
Andres Mejia [Sun, 7 Aug 2011 03:46:16 +0000 (23:46 -0400)] 
Place source in proper alphabetical order.

SVN-Revision: 3549

15 years agoFix builds using cmake for new ppmd code added.
Andres Mejia [Sun, 7 Aug 2011 03:41:35 +0000 (23:41 -0400)] 
Fix builds using cmake for new ppmd code added.

SVN-Revision: 3548

15 years agoSupport conversions between ppmd blocks and lzss blocks.
Andres Mejia [Sun, 7 Aug 2011 03:24:29 +0000 (23:24 -0400)] 
Support conversions between ppmd blocks and lzss blocks.
This will enable support for large RAR files compressed using method "good" and
"best".

SVN-Revision: 3547

15 years agorar_br_read_ahead() must be invoked before using both rar_br_bits() and rar_br_consume().
Michihiro NAKAJIMA [Sun, 7 Aug 2011 01:45:52 +0000 (21:45 -0400)] 
rar_br_read_ahead() must be invoked before using both rar_br_bits() and rar_br_consume().

SVN-Revision: 3546

15 years agoThrow out a macro optimization for byte swap on x86 processor.
Michihiro NAKAJIMA [Sun, 7 Aug 2011 01:34:26 +0000 (21:34 -0400)] 
Throw out a macro optimization for byte swap on x86 processor.

SVN-Revision: 3545

15 years agoDon't use #pragma pack.
Andres Mejia [Sat, 6 Aug 2011 23:36:08 +0000 (19:36 -0400)] 
Don't use #pragma pack.

SVN-Revision: 3544

15 years agoImplement support for RAR files compressed using "best" and "good" method.
Andres Mejia [Sat, 6 Aug 2011 21:54:00 +0000 (17:54 -0400)] 
Implement support for RAR files compressed using "best" and "good" method.
PPMd code used is public domain code from p7zip. It seems 7z and RAR "good" and
"best" compressed files had a lot in common. Very little changes were needed
from original code so that it would work with RAR files and work with
libarchive. Currently, this will not work correctly with largefiles compressed
using PPMd.

SVN-Revision: 3543

15 years agoMerge r2516, r2536 from trunk: Allow path table offset values of
Tim Kientzle [Sat, 6 Aug 2011 17:53:51 +0000 (13:53 -0400)] 
Merge r2516, r2536 from trunk:  Allow path table offset values of
0 and 18, which are used by some ISO writers.

SVN-Revision: 3542

15 years agoBack to simply invoke lha_crc16(). Crrently the total cost of the
Michihiro NAKAJIMA [Sat, 6 Aug 2011 14:21:34 +0000 (10:21 -0400)] 
Back to simply invoke lha_crc16(). Crrently the total cost of the
calculation of CRC16 is almost the same as previous complex code,
so it is better that we make that code simple.

SVN-Revision: 3541

15 years agoBack out r3539. It was a wrong file I committed.
Michihiro NAKAJIMA [Sat, 6 Aug 2011 09:41:36 +0000 (05:41 -0400)] 
Back out r3539. It was a wrong file I committed.

SVN-Revision: 3540

15 years agoImprove a CRC16 calculation to be faster.
Michihiro NAKAJIMA [Sat, 6 Aug 2011 08:27:43 +0000 (04:27 -0400)] 
Improve a CRC16 calculation to be faster.

SVN-Revision: 3539

15 years agoIt would be better to return ARCHIVE_FAILED instead of ARCHIVE_FATAL
Michihiro NAKAJIMA [Fri, 5 Aug 2011 07:03:19 +0000 (03:03 -0400)] 
It would be better to return ARCHIVE_FAILED instead of ARCHIVE_FATAL
when there is something wrong in extracting RAR files, because
you may extract the next entry file in the RAR archive file.

SVN-Revision: 3538

15 years agoIf a extracted size is zero, return ARCHIVE_FAILED so as no to
Michihiro NAKAJIMA [Fri, 5 Aug 2011 05:46:43 +0000 (01:46 -0400)] 
If a extracted size is zero, return ARCHIVE_FAILED so as no to
cause a infinity loop in reading broken RAR files, which made by test_fuzz.

SVN-Revision: 3537

15 years agoBring a bit stream reader from our LHA reader.
Michihiro NAKAJIMA [Fri, 5 Aug 2011 02:46:50 +0000 (22:46 -0400)] 
Bring a bit stream reader from our LHA reader.
This is about 10% faster than previous version(r3535) in extracting RAR files.

SVN-Revision: 3536

15 years agoWe should use int64_t instead of off_t in libarchive 3.0 and later.
Michihiro NAKAJIMA [Thu, 4 Aug 2011 10:02:54 +0000 (06:02 -0400)] 
We should use int64_t instead of off_t in libarchive 3.0 and later.

SVN-Revision: 3535

15 years agoFix my silly typo in r3532.
Michihiro NAKAJIMA [Thu, 4 Aug 2011 03:38:56 +0000 (23:38 -0400)] 
Fix my silly typo in r3532.

SVN-Revision: 3533

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

SVN-Revision: 3517

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

SVN-Revision: 3491

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

SVN-Revision: 3482

15 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

15 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