]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
12 years agoSwitch an external program for bzip2 decompression from "bunzip2"
Michihiro NAKAJIMA [Sat, 13 Oct 2012 09:56:11 +0000 (18:56 +0900)] 
Switch an external program for bzip2 decompression from "bunzip2"
to "bzip2 -d".

12 years agoIntegrate __archive_write_program_set_cmd into __archive_write_program_open.
Michihiro NAKAJIMA [Sat, 13 Oct 2012 07:30:17 +0000 (16:30 +0900)] 
Integrate __archive_write_program_set_cmd into __archive_write_program_open.

12 years agoUse an external gzip program when zlib is unavailable.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 21:57:36 +0000 (06:57 +0900)] 
Use an external gzip program when zlib is unavailable.

12 years agoProperly call next filter even if the external program is already closed
Michihiro NAKAJIMA [Thu, 11 Oct 2012 21:30:25 +0000 (06:30 +0900)] 
Properly call next filter even if the external program is already closed
or not opend.

12 years agoMove archive_compressor_gzip_free and archive_compressor_gzip_options
Michihiro NAKAJIMA [Thu, 11 Oct 2012 20:15:29 +0000 (05:15 +0900)] 
Move archive_compressor_gzip_free and archive_compressor_gzip_options
after archive_write_add_filter_gzip. This is preparation to use an
external program gzip if zlib is not available.

12 years agoFix style.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 20:08:02 +0000 (05:08 +0900)] 
Fix style.

12 years agoAdd a test for archive_cmdline.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 10:51:52 +0000 (19:51 +0900)] 
Add a test for archive_cmdline.

12 years agoFix few bugs in archive_cmdline.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 10:51:08 +0000 (19:51 +0900)] 
Fix few bugs in archive_cmdline.

12 years agocanGunzip is no longer needed. We use "gzip -d" for gzip decompression.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 06:01:20 +0000 (15:01 +0900)] 
canGunzip is no longer needed. We use "gzip -d" for gzip decompression.

12 years agoSet warning messages.
Michihiro NAKAJIMA [Thu, 11 Oct 2012 05:36:56 +0000 (14:36 +0900)] 
Set warning messages.

12 years agoParse a command line instead of using
Michihiro NAKAJIMA [Thu, 11 Oct 2012 02:13:20 +0000 (11:13 +0900)] 
Parse a command line instead of using
   archive_write_add_filter_programl,
   archive_write_add_filter_programv,
   archive_read_support_filter_programl,
   archive_read_support_filter_programv,
   archive_read_support_filter_programl_signature and
   archive_read_support_filter_programv_signature.
And so remove those functions, which I recently added.

12 years agoSupport lzop options for writing.
Michihiro NAKAJIMA [Wed, 10 Oct 2012 23:04:22 +0000 (08:04 +0900)] 
Support lzop options for writing.

12 years agoSupport lrzip options for writing.
Michihiro NAKAJIMA [Wed, 10 Oct 2012 22:58:40 +0000 (07:58 +0900)] 
Support lrzip options for writing.

12 years agoImprove archive_write_filter_program handing to be able to
Michihiro NAKAJIMA [Wed, 10 Oct 2012 22:33:00 +0000 (07:33 +0900)] 
Improve archive_write_filter_program handing to be able to
use options for an external program from
archive_write_filter_{grzip,lrzip,lzop}.

12 years agoPlace canGrzip before canGzip.
Michihiro NAKAJIMA [Wed, 10 Oct 2012 02:19:20 +0000 (11:19 +0900)] 
Place canGrzip before canGzip.

12 years agoAdd support for grzip compression.
Michihiro NAKAJIMA [Tue, 9 Oct 2012 23:17:05 +0000 (08:17 +0900)] 
Add support for grzip compression.

12 years agoFix matching test name to correctly check a test name terminator.
Michihiro NAKAJIMA [Wed, 10 Oct 2012 01:11:44 +0000 (10:11 +0900)] 
Fix matching test name to correctly check a test name terminator.

12 years agoSet correct arg0; consider that arg0 may have space characters.
Michihiro NAKAJIMA [Wed, 10 Oct 2012 00:54:49 +0000 (09:54 +0900)] 
Set correct arg0; consider that arg0 may have space characters.

12 years agoFix style and Make source files be somewhat readable.
Michihiro NAKAJIMA [Tue, 9 Oct 2012 20:48:42 +0000 (05:48 +0900)] 
Fix style and Make source files be somewhat readable.

12 years agoRemove outdated comments.
Michihiro NAKAJIMA [Tue, 9 Oct 2012 12:40:33 +0000 (21:40 +0900)] 
Remove outdated comments.

12 years agoEnable the iso9660 reader to seek a file pointer for reading
Michihiro NAKAJIMA [Tue, 9 Oct 2012 06:44:26 +0000 (15:44 +0900)] 
Enable the iso9660 reader to seek a file pointer for reading
its contents.

12 years ago- Clean up style.
Michihiro NAKAJIMA [Tue, 9 Oct 2012 05:37:30 +0000 (14:37 +0900)] 
- Clean up style.
- Divide archive_read_format_iso9660_read_header function into two
  functions to be somewhat readable.

12 years agoSet deprecated attribute to remaining deprecated functions.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 22:52:40 +0000 (07:52 +0900)] 
Set deprecated attribute to remaining deprecated functions.

12 years agoReplace deprecated archive_read_finish by archive_read_free
Michihiro NAKAJIMA [Mon, 8 Oct 2012 22:49:06 +0000 (07:49 +0900)] 
Replace deprecated archive_read_finish by archive_read_free
and deprecated archive_write_finish by archive_write_free.

12 years agoReplace deprecated macro ARCHIVE_COMPRESSION_* by ARCHIVE_FILTER_*.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 22:30:41 +0000 (07:30 +0900)] 
Replace deprecated macro ARCHIVE_COMPRESSION_* by ARCHIVE_FILTER_*.

12 years agoMake lrzip and lzop write filters set correct filter name and code
Michihiro NAKAJIMA [Mon, 8 Oct 2012 22:22:36 +0000 (07:22 +0900)] 
Make lrzip and lzop write filters set correct filter name and code
even if thery actually use archive_write_filter_program.

12 years agoRename test_compat_lrzip.tar.lrz.uu to test_read_filter_lrzip.tar.lrz.uu
Michihiro NAKAJIMA [Mon, 8 Oct 2012 21:38:23 +0000 (06:38 +0900)] 
Rename test_compat_lrzip.tar.lrz.uu to test_read_filter_lrzip.tar.lrz.uu

12 years agoRename filter_fork.c to filter_fork_posix.c.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 21:25:24 +0000 (06:25 +0900)] 
Rename filter_fork.c to filter_fork_posix.c.
It is clear the file is used for which platform.

12 years agoAdd decompression tests to bsdcpio and bsdtar.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 07:49:46 +0000 (16:49 +0900)] 
Add decompression tests to bsdcpio and bsdtar.

12 years agos/test_write_compress_/test_write_filter_/
Michihiro NAKAJIMA [Mon, 8 Oct 2012 06:36:57 +0000 (15:36 +0900)] 
s/test_write_compress_/test_write_filter_/
So as to match the API names.

12 years agoIntroduce b64encode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 03:38:04 +0000 (12:38 +0900)] 
Introduce b64encode filter.

12 years agoIntroduce uuencode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 00:38:59 +0000 (09:38 +0900)] 
Introduce uuencode filter.

12 years agoFix potential memory leaks found with Clang.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 21:21:49 +0000 (06:21 +0900)] 
Fix potential memory leaks found with Clang.

12 years agoImprove compatibility to uudecode command.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 02:27:52 +0000 (11:27 +0900)] 
Improve compatibility to uudecode command.
Ignore junk data after an end sequence detected.

12 years agoFix decoded data loss in uudecode filter.
Michihiro NAKAJIMA [Mon, 8 Oct 2012 02:02:05 +0000 (11:02 +0900)] 
Fix decoded data loss in uudecode filter.

12 years agoAdd archive_write_add_filter_lzop.c entry into CMakeList.txt.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 11:34:36 +0000 (20:34 +0900)] 
Add archive_write_add_filter_lzop.c entry into CMakeList.txt.

12 years agoSurely skip test_read_filter_lrzip and test_read_filter_lzop when
Michihiro NAKAJIMA [Sun, 7 Oct 2012 11:04:03 +0000 (20:04 +0900)] 
Surely skip test_read_filter_lrzip and test_read_filter_lzop when
the compression commands are not available.

12 years agoarchive_read_support_filter_lrzip and archive_write_add_filter_lrzip
Michihiro NAKAJIMA [Sun, 7 Oct 2012 07:13:17 +0000 (16:13 +0900)] 
archive_read_support_filter_lrzip and archive_write_add_filter_lrzip
should return ARCHIVE_WARN instead of ARCHIVE_OK since those filters
always use an external program, lrzip(1) and other filters do so
if they use an external program instead of implemented code with
the library. It is clear that returning ARCHIVE_WARN means the filter
uses an external program.

12 years agoRename test_compat_lrzip to test_read_filter_lrzip since lrzip reader
Michihiro NAKAJIMA [Sun, 7 Oct 2012 06:52:33 +0000 (15:52 +0900)] 
Rename test_compat_lrzip to test_read_filter_lrzip since lrzip reader
entirely uses an external program, lrzip(1). It is not a compatible test.

12 years agoApply __attribute__((deprecated)) to archive_read_open_file,
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:50:50 +0000 (14:50 +0900)] 
Apply __attribute__((deprecated)) to archive_read_open_file,
archive_write_open_file, archive_position_compressed,
archive_position_uncompressed, archive_compression_name and
archive_compression.

12 years agoStop using deprecated functions.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:33:50 +0000 (14:33 +0900)] 
Stop using deprecated functions.
s/archive_read_open_file/archive_read_open_filename/
s/archive_write_open_file/archive_write_open_filename/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:05:06 +0000 (14:05 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_position_compressed(a)/archive_filter_bytes(a, -1)/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 05:01:15 +0000 (14:01 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_position_uncompressed(a)/archive_filter_bytes(a, 0)/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:53:18 +0000 (13:53 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_compression_name(/archive_filter_name(/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:48:48 +0000 (13:48 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_compression(/archive_filter_code(/

12 years agoStop using deprecated functions. Much remains to be replaced.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 04:29:29 +0000 (13:29 +0900)] 
Stop using deprecated functions. Much remains to be replaced.
s/archive_write_set_compression_/archive_write_add_filter_/

12 years agoAdd --lrzip option to bsdtar and bsdcpio to use lrzip compression.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:56:02 +0000 (12:56 +0900)] 
Add --lrzip option to bsdtar and bsdcpio to use lrzip compression.

12 years agoImprove test_write_compress_lrzip not to use deprecated functions.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:39:53 +0000 (12:39 +0900)] 
Improve test_write_compress_lrzip not to use deprecated functions.

12 years agoAdd a test for bsdtar --xz option.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:27:25 +0000 (12:27 +0900)] 
Add a test for bsdtar --xz option.

12 years agoAdd a test for bsdtar --lzma option.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 03:20:34 +0000 (12:20 +0900)] 
Add a test for bsdtar --lzma option.

12 years agoAdd support for lzop.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 02:08:12 +0000 (11:08 +0900)] 
Add support for lzop.

12 years agoFix a long standing bug that archive_write_add_filter_program
Michihiro NAKAJIMA [Sun, 7 Oct 2012 02:03:48 +0000 (11:03 +0900)] 
Fix a long standing bug that archive_write_add_filter_program
incorrectly handles the return value of __archive_write_filter().

12 years agoFix a filter name of the writing filter program.
Michihiro NAKAJIMA [Sun, 7 Oct 2012 01:58:43 +0000 (10:58 +0900)] 
Fix a filter name of the writing filter program.

12 years agoRemove __archive_read_program(), use __archive_read_programl() instead.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 07:21:45 +0000 (16:21 +0900)] 
Remove __archive_read_program(), use __archive_read_programl() instead.

12 years agolrunzip is no longer used.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 07:01:09 +0000 (16:01 +0900)] 
lrunzip is no longer used.

12 years agoFix comments on gunzip.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 06:46:42 +0000 (15:46 +0900)] 
Fix comments on gunzip.

12 years agoTweak indent.
Michihiro NAKAJIMA [Sat, 6 Oct 2012 06:40:52 +0000 (15:40 +0900)] 
Tweak indent.

12 years agoRevert part of d1be20168 because gunzip is still used in
Michihiro NAKAJIMA [Sat, 6 Oct 2012 04:34:51 +0000 (13:34 +0900)] 
Revert part of d1be20168 because gunzip is still used in
test_read_filter_program and test_read_filter_program_signature,
which cannot give arguments to the program.

12 years agoGet a full path of a command name for CreateProcess().
Michihiro NAKAJIMA [Sat, 6 Oct 2012 04:20:45 +0000 (13:20 +0900)] 
Get a full path of a command name for CreateProcess().

12 years agoFix a cause of segmentation fault in case of creating a child
Michihiro NAKAJIMA [Fri, 5 Oct 2012 05:28:02 +0000 (14:28 +0900)] 
Fix a cause of segmentation fault in case of creating a child
process failed. It occured when archive_write_close() was called
after an opening filter process failed.

12 years agoRename test_read_uu.c to test_read_filter_uudecode.c, and
Michihiro NAKAJIMA [Fri, 5 Oct 2012 03:33:30 +0000 (12:33 +0900)] 
Rename test_read_uu.c to test_read_filter_uudecode.c, and
divide test_read_uu to test_read_filter_uudecode and
test_read_filter_uudecode_base64.

12 years agoRename test_read_compress_program.c to test_read_filter_program.c
Michihiro NAKAJIMA [Fri, 5 Oct 2012 03:00:26 +0000 (12:00 +0900)] 
Rename test_read_compress_program.c to test_read_filter_program.c

12 years agoAvoid test_read_format_cab failure if no zlib.
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:46:23 +0000 (11:46 +0900)] 
Avoid test_read_format_cab failure if no zlib.

12 years agoWhen zlib is not available, use "gzip -d" insted of gunzip
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:33:14 +0000 (11:33 +0900)] 
When zlib is not available, use "gzip -d" insted of gunzip
because gzip is widely available than gunzip is.

12 years agoUse -q option to lrzip to be quiet.
Michihiro NAKAJIMA [Fri, 5 Oct 2012 02:07:58 +0000 (11:07 +0900)] 
Use -q option to lrzip to be quiet.

12 years agoAvoid infinity wait in ReadFile during running an external program as
Michihiro NAKAJIMA [Fri, 5 Oct 2012 01:54:38 +0000 (10:54 +0900)] 
Avoid infinity wait in ReadFile during running an external program as
decoding filter on Windows.

12 years agoMake a filter program be called with its arguments.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 00:18:30 +0000 (09:18 +0900)] 
Make a filter program be called with its arguments.

12 years agoMake configure detect ARCHIVE_CRYPTO_*_WIN on mingw.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 03:12:22 +0000 (12:12 +0900)] 
Make configure detect ARCHIVE_CRYPTO_*_WIN on mingw.

12 years agoFix build failure on mingw32 for x86-64.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 01:07:30 +0000 (10:07 +0900)] 
Fix build failure on mingw32 for x86-64.

12 years agoFix build failure on mingw32.
Michihiro NAKAJIMA [Thu, 4 Oct 2012 00:41:57 +0000 (09:41 +0900)] 
Fix build failure on mingw32.

12 years agoRemove unnecessary build condition for a use of
Michihiro NAKAJIMA [Wed, 3 Oct 2012 11:51:07 +0000 (20:51 +0900)] 
Remove unnecessary build condition for a use of
__archive_create_child().  It has worked well on both POSIX
system and non-POSIX system since libarchive 2.7.0.

12 years agoAdd extraction tests for compressed files to bsdtar_test.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 06:16:35 +0000 (15:16 +0900)] 
Add extraction tests for compressed files to bsdtar_test.

12 years agoIncrease a registered filter bidder size to avoid tests failure.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 07:18:17 +0000 (16:18 +0900)] 
Increase a registered filter bidder size to avoid tests failure.
  - test_read_format_cpio_bin_gz
  - test_read_format_gtar_lzma.

12 years agoFix test_option_older_than failure on linux.
Michihiro NAKAJIMA [Wed, 3 Oct 2012 06:50:47 +0000 (15:50 +0900)] 
Fix test_option_older_than failure on linux.
 - Use pax format in test_option_older_than and test_option_newer_than
   to make sure the nano second of a file time is recorded.

12 years agoMerge pull request #28 from graysky2/master
Tim Kientzle [Wed, 3 Oct 2012 03:13:44 +0000 (20:13 -0700)] 
Merge pull request #28 from graysky2/master

enable lrzip support

12 years agoenable lrzip support 28/head
graysky [Wed, 3 Oct 2012 00:40:38 +0000 (20:40 -0400)] 
enable lrzip support

12 years agoAdd --older,--older-than,--older-mtime and --older-mtime-than to bsdtar to
Michihiro NAKAJIMA [Wed, 3 Oct 2012 00:05:57 +0000 (09:05 +0900)] 
Add --older,--older-than,--older-mtime and --older-mtime-than to bsdtar to
enable only including files and directories older than specified date or file.

12 years agoFix a bug that Clang Static Analyzer claimed it is potential insecure
Michihiro NAKAJIMA [Wed, 12 Sep 2012 05:32:06 +0000 (14:32 +0900)] 
Fix a bug that Clang Static Analyzer claimed it is potential insecure
implementation-specific behavior in call 'vfork' and recommended the
use of posix_spawn instead of vfork.

12 years agoApply *_CLOEXEC flags to system calls which can be used with
Michihiro NAKAJIMA [Tue, 2 Oct 2012 04:58:52 +0000 (13:58 +0900)] 
Apply *_CLOEXEC flags to system calls which can be used with
to avoid file descriptor leaks to the child process.
- Pass O_CLOEXEC to open(2) system call if it is defined.
- Use fcntl(2) and F_DUPFD_CLOEXEC instead of dup(2)
  if F_DUPFD_CLOEXEC is defined.
- Set FD_CLOEXEC with fcntl(2) if a file descriptor does not have.

12 years agoMerge pull request #22 from amejia1/seek-support
Andres Mejia [Mon, 1 Oct 2012 04:08:09 +0000 (21:08 -0700)] 
Merge pull request #22 from amejia1/seek-support

Implement function used to seek within data blocks.

12 years agoMerge pull request #27 from xiw/overflow
Michihiro NAKAJIMA [Sat, 29 Sep 2012 07:05:27 +0000 (00:05 -0700)] 
Merge pull request #27 from xiw/overflow

Fix overflow check in safe_fprintf()

12 years agoMerge pull request #26 from cmdrclueless/tar_read_buffer_overrun_fix2
Michihiro NAKAJIMA [Sat, 29 Sep 2012 06:54:47 +0000 (23:54 -0700)] 
Merge pull request #26 from cmdrclueless/tar_read_buffer_overrun_fix2

Add tighter checks to avoid reading past end of buffer

12 years agoFix signed integer overflow in safe_fprintf() 27/head
Xi Wang [Fri, 28 Sep 2012 07:04:42 +0000 (03:04 -0400)] 
Fix signed integer overflow in safe_fprintf()

The following "overflow" check in safe_fprintf() invokes undefined
behavior (signed integer overflow), which is incorrect.  Clang will
optimize it away.

int old_length = fmtbuff_length;
fmtbuff_length += fmtbuff_length / 4;
if (old_length > fmtbuff_length) { ... }

The check is in the form:

x > x + x / 4.

As per the C standard, the check is equivalent to:

0 > x / 4,

since x + x / 4 is assumed to not overflow (otherwise undefined).

An earlier check ensures x >= 8192, so this check is always false,
and Clang doesn't emit code for it.

This patch uses unsigned integers to avoid undefined behavior.

12 years agoImplement function used to seek within data blocks. 22/head
Andres Mejia [Sat, 22 Sep 2012 00:23:25 +0000 (20:23 -0400)] 
Implement function used to seek within data blocks.
This only implements seeking fully for uncompressed RAR files. Seeking is not
implemented for compressed RAR files and for the other formats (ZIP, TAR, etc.).

12 years agoRefactored common code into a single function 26/head
Brian Weaver [Wed, 26 Sep 2012 15:45:52 +0000 (11:45 -0400)] 
Refactored common code into a single function

The tar_atol8() and tar_atol10() functions were essentially
identical. The code has been refactored to a common function
with tar_atol8() and tar_atol10() calling the commont function
with the radix instead duplicating the code.

The logic was also changed slightly to prevent a pointer
dereference when a zero length character array is passed to
the conversion routine.

12 years agoAdd tighter checks to avoid reading past end of buffer
Brian Weaver [Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)] 
Add tighter checks to avoid reading past end of buffer

The string to base 8/10 conversion routines could read past the
counted end of the buffer if the string is correctly formated.
The number of characters is now checked and decremented for every
character that is consumed for processing.

successfully passes 'make check-TESTS'

12 years agoMinor improvement in the mtree bidder.
Michihiro NAKAJIMA [Wed, 26 Sep 2012 04:04:56 +0000 (13:04 +0900)] 
Minor improvement in the mtree bidder.
 - During checking NetBSD mtree -D format, if the first character of
   the last filed in an entry line is '/', fail the test bidding mtree
   format.

12 years agoBack out of b0eb750cab. It caused several tar/pax test failures.
Michihiro NAKAJIMA [Wed, 26 Sep 2012 02:10:31 +0000 (11:10 +0900)] 
Back out of b0eb750cab. It caused several tar/pax test failures.

12 years agoMerge branch 'mtree-classic'
Michihiro NAKAJIMA [Wed, 26 Sep 2012 01:13:39 +0000 (10:13 +0900)] 
Merge branch 'mtree-classic'

  Add support for generating a mtree classic format(an older formt).

12 years agoUse a character table to check safe characters in filenames in a mtree archive,
Michihiro NAKAJIMA [Tue, 25 Sep 2012 23:52:19 +0000 (08:52 +0900)] 
Use a character table to check safe characters in filenames in a mtree archive,
and add a test for it.

12 years agoMerge pull request #24 from cmdrclueless/tar_read_buffer_overrun_fix
Michihiro NAKAJIMA [Tue, 25 Sep 2012 23:00:29 +0000 (16:00 -0700)] 
Merge pull request #24 from cmdrclueless/tar_read_buffer_overrun_fix

Add tighter checks to avoid reading past end of buffer

12 years agoPlug the possibility of memory leak.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 12:31:52 +0000 (21:31 +0900)] 
Plug the possibility of memory leak.

12 years agoFix bugs introdueced by f87e3db94c.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 11:17:29 +0000 (20:17 +0900)] 
Fix bugs introdueced by f87e3db94c.

12 years agoAdd tighter checks to avoid reading past end of buffer 24/head
Brian Weaver [Tue, 25 Sep 2012 13:51:12 +0000 (09:51 -0400)] 
Add tighter checks to avoid reading past end of buffer

The string to base 8/10 conversion routines could read past the
counted end of the buffer if the string is correctly formated.
The number of characters is now checked and decremented for every
character that is consumed for processing.

12 years agoFix build failure on linux; remove unused variables and a function.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 08:26:38 +0000 (17:26 +0900)] 
Fix build failure on linux; remove unused variables and a function.

12 years agoReduce the amount of memory in mtree writer.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 03:38:03 +0000 (12:38 +0900)] 
Reduce the amount of memory in mtree writer.

12 years agoDisable some mode tests on Windows. We cannot perform it as POSIX systems.
Michihiro NAKAJIMA [Tue, 25 Sep 2012 00:02:17 +0000 (09:02 +0900)] 
Disable some mode tests on Windows. We cannot perform it as POSIX systems.

12 years agoFix build failure on Clang.
Michihiro NAKAJIMA [Mon, 24 Sep 2012 22:25:46 +0000 (07:25 +0900)] 
Fix build failure on Clang.

12 years agoAdd support for writing mtree classic format, which mtree utility generates by default.
Michihiro NAKAJIMA [Fri, 21 Sep 2012 02:51:16 +0000 (11:51 +0900)] 
Add support for writing mtree classic format, which mtree utility generates by default.

12 years agoAllow FreeBSD mtree's nochange keyword.
Michihiro NAKAJIMA [Mon, 24 Sep 2012 22:08:20 +0000 (07:08 +0900)] 
Allow FreeBSD mtree's nochange keyword.