]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Andres Mejia [Fri, 1 Feb 2013 21:52:21 +0000 (16:52 -0500)]
Set use of /SAFESEH linker flag for all LIBARCHIVE_CHECK_C_SOURCE_* checks.
Andres Mejia [Fri, 1 Feb 2013 21:52:19 +0000 (16:52 -0500)]
Modify CHECK_C_SOURCE_* checks to fix builds using Visual Studio 12.
This is needed to fix build failures using Visual Studio 12 and using libraries such as liblzma which
have been built without the "/SAFESEH" linker flag (which is the usual case for libraries built using
the mingw toolchain).
Andres Mejia [Fri, 1 Feb 2013 04:07:57 +0000 (23:07 -0500)]
Check that build did not succeed with WITHOUT_PCRE_STATIC before defining PCRE_STATIC.
Andres Mejia [Fri, 1 Feb 2013 04:03:33 +0000 (23:03 -0500)]
Add check for build without PCRE_STATIC defined.
Andres Mejia [Fri, 1 Feb 2013 04:00:11 +0000 (23:00 -0500)]
Redo check for pcreposix library.
Other check was broken, it did not set PCRE_STATIC when necessary nor did it add needed PCREPOSIX_LIBRARIES
for Visual Studio build.
Andres Mejia [Fri, 1 Feb 2013 00:53:54 +0000 (19:53 -0500)]
Minor formatting change, no functional change.
Andres Mejia [Fri, 1 Feb 2013 00:50:42 +0000 (19:50 -0500)]
Rename PCREPOSIX_INCLUDE* to PCRE_INCLUDE* as pcreposix.h will be found alongside pcre.h.
Andres Mejia [Fri, 1 Feb 2013 00:20:34 +0000 (19:20 -0500)]
Add CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio builds.
Visual Studio 12 enables this option by default. Enabling /SAFESEH will produce build failures when
attempting to link other libraries which were not built with /SAFESEH. This would typically be
the case for libraries built using the mingw toolchain, where the option to use structured exception
handling is not yet available.
The option is used as follows.
Setting to "YES" sets "/SAFESEH" linker flag
Setting to "NO" sets "/SAFESEH:NO" linker flag
Setting to any other value such as "AUTO" won't do anything (set the default linker flag from Visual Studio)
Andres Mejia [Thu, 31 Jan 2013 23:39:39 +0000 (18:39 -0500)]
Support POSIX regular expression support using PCRE in CMake builds.
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
Andres Mejia [Wed, 30 Jan 2013 23:49:26 +0000 (18:49 -0500)]
Fix build errors on Visual Studio from negating value of sizeof operator.
Andres Mejia [Wed, 30 Jan 2013 02:30:09 +0000 (21:30 -0500)]
Remove error about unreachable code, fixes build on Visual Studio 12.
Andres Mejia [Mon, 28 Jan 2013 22:27:40 +0000 (17:27 -0500)]
Write common checks for files in a separate function.
Andres Mejia [Mon, 28 Jan 2013 05:31:27 +0000 (00:31 -0500)]
Add new test case to thouroughly test multivolume RAR seek support.
Andres Mejia [Sun, 27 Jan 2013 16:32:18 +0000 (11:32 -0500)]
Add new tests in multivolume RAR seek test case.
Andres Mejia [Sun, 27 Jan 2013 16:31:02 +0000 (11:31 -0500)]
Change how seek support in stored RARs are handled.
This fixes various test cases when seeking is used.
Andres Mejia [Sat, 26 Jan 2013 17:01:13 +0000 (12:01 -0500)]
Add checks for proper return value reading past EOF in RAR archives.
Andres Mejia [Sat, 26 Jan 2013 17:00:38 +0000 (12:00 -0500)]
Fix check for EOF in RAR format reader.
Andres Mejia [Sat, 26 Jan 2013 03:43:17 +0000 (22:43 -0500)]
Fix build failure when doing normal builds.
These are builds done running a standard './configure && make'. This
will also fix a corner case where the whence is set to anything other than
SEEK_SET, SEEK_CUR, or SEEK_END. The behavior is to use SEEK_SET by default.
Andres Mejia [Sat, 26 Jan 2013 03:03:04 +0000 (22:03 -0500)]
Update RAR test case to expect correct results from calls to archive_read_data().
Andres Mejia [Sat, 26 Jan 2013 03:01:56 +0000 (22:01 -0500)]
Give formats/filters way to know data amount requested from archive_read_data().
Andres Mejia [Sat, 26 Jan 2013 01:57:48 +0000 (20:57 -0500)]
Fix broken RAR seek support.
Using SEEK_CUR or SEEK_END produced the wrong results, SEEK_SET was
fine however. Note that archive_read_data() doesn't function exactly
as POSIX read. Currently, downstreams will have to check the current
file position after after call to archive_read_data() if they are
to use SEEK_CUR afterwards.
Andres Mejia [Tue, 22 Jan 2013 04:32:49 +0000 (23:32 -0500)]
Fix check for compression method in rar seek method.
Andres Mejia [Mon, 14 Jan 2013 05:24:25 +0000 (00:24 -0500)]
Reenable developer CFLAGS.
Andres Mejia [Mon, 14 Jan 2013 04:43:04 +0000 (23:43 -0500)]
Update libarchive to 3.1.1.
Andres Mejia [Mon, 14 Jan 2013 04:30:57 +0000 (23:30 -0500)]
Bump soname major version in CMakeLists.txt.
Andres Mejia [Mon, 14 Jan 2013 04:29:48 +0000 (23:29 -0500)]
Fix formatting from build/bump-version.sh for NEWS file.
Andres Mejia [Mon, 14 Jan 2013 04:25:40 +0000 (23:25 -0500)]
Add notes on how to make a new release of libarchive for developers.
Andres Mejia [Mon, 14 Jan 2013 01:36:50 +0000 (20:36 -0500)]
Remove developer CFLAGS if a release build is to be made.
Andres Mejia [Mon, 14 Jan 2013 00:57:49 +0000 (19:57 -0500)]
Bump soname major version to 13.
Andres Mejia [Mon, 14 Jan 2013 00:52:07 +0000 (19:52 -0500)]
Bump version to 3.1.0 due to API/ABI changes.
Andres Mejia [Sun, 13 Jan 2013 23:57:48 +0000 (18:57 -0500)]
Add generated release zip files to .gitignore.
Andres Mejia [Sun, 13 Jan 2013 23:55:19 +0000 (18:55 -0500)]
Update configure script and header files to new libarchive version.
Andres Mejia [Sun, 13 Jan 2013 23:27:09 +0000 (18:27 -0500)]
Update NEWS entries for release of libarchive 3.0.5.
Andres Mejia [Sun, 13 Jan 2013 23:02:44 +0000 (18:02 -0500)]
Bump libarchive version to 3.0.5.
Andres Mejia [Sun, 13 Jan 2013 22:49:25 +0000 (17:49 -0500)]
Merge remote-tracking branch 'libarchive/release' into libarchive-master
Andres Mejia [Sun, 13 Jan 2013 21:53:26 +0000 (16:53 -0500)]
Remove comment and fix failure message to indicate gzip is expected.
Andres Mejia [Sun, 13 Jan 2013 21:52:21 +0000 (13:52 -0800)]
Merge pull request #31 from bamiaux/fix_gunzip_test
Fix test_read_append_filter_program
Benoît Amiaux [Thu, 3 Jan 2013 18:12:00 +0000 (19:12 +0100)]
Fix test_read_append_filter_program
canGzip() tests for "gzip -d" then try to use gunzip.
On some systems, gzip is available while gunzip is not.
Use gzip -d as this is what we are looking for
Tim Kientzle [Mon, 24 Dec 2012 20:54:09 +0000 (12:54 -0800)]
Style: Whitespace around '='
Michihiro NAKAJIMA [Tue, 18 Dec 2012 22:31:10 +0000 (07:31 +0900)]
Fix issue 293; plug memory leaks.
Michihiro NAKAJIMA [Sun, 16 Dec 2012 00:21:14 +0000 (09:21 +0900)]
Fix test failure without liblzma.
Michihiro NAKAJIMA [Sat, 15 Dec 2012 23:40:05 +0000 (08:40 +0900)]
Fix memory overflow.
Michihiro NAKAJIMA [Sat, 15 Dec 2012 23:19:09 +0000 (08:19 +0900)]
Fix test failure without zlib.
Michihiro NAKAJIMA [Sat, 15 Dec 2012 23:01:37 +0000 (08:01 +0900)]
Fix build failure without zlib.
Michihiro NAKAJIMA [Mon, 10 Dec 2012 09:39:53 +0000 (18:39 +0900)]
Add tests for archive_write_add_filter_by_name.
Michihiro NAKAJIMA [Mon, 10 Dec 2012 03:39:14 +0000 (12:39 +0900)]
Add tests for archive_write_set_format_by_name.
Andres Mejia [Sun, 9 Dec 2012 19:43:28 +0000 (14:43 -0500)]
Fixup paths to reference files in Makefile.am.
Tim Kientzle [Sun, 9 Dec 2012 19:02:55 +0000 (11:02 -0800)]
Merge pull request #23 from amejia1/set-format
Manually set format and filters
Andres Mejia [Sun, 9 Dec 2012 18:12:01 +0000 (13:12 -0500)]
Separate code to set formats/filters into different source files.
This needs close_filters and free_filters to be globally available
as global symbols __archive_read_close_filters and
__archive_read_free_filters.
Andres Mejia [Sat, 22 Sep 2012 22:43:23 +0000 (18:43 -0400)]
Implement functions to manually set the format and filters used.
Andres Mejia [Sat, 22 Sep 2012 22:04:51 +0000 (18:04 -0400)]
Implement command to test if commands are available in the current platform.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 23:26:37 +0000 (08:26 +0900)]
Fix build failure without XATTR support on Mac.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 11:25:48 +0000 (20:25 +0900)]
Plug address space leaks on Windows.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 11:02:52 +0000 (20:02 +0900)]
Fix build failure on Visutal Studio on Win32.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 10:21:12 +0000 (19:21 +0900)]
Split test_read_truncated_filter to know what compression fails easily.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 05:59:18 +0000 (14:59 +0900)]
Fix issue 257. Revise zip header offsets for reading SFX.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 03:51:29 +0000 (12:51 +0900)]
Avoid arithmetic overflow warning(C6297) found by Visual studio
static analysis.
Michihiro NAKAJIMA [Mon, 3 Dec 2012 03:36:06 +0000 (12:36 +0900)]
Use a proper structure for a test for gnutar header.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 23:46:19 +0000 (08:46 +0900)]
Split test_read_format_7zip by a compression type in order to test
a specific compression easily.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 23:16:05 +0000 (08:16 +0900)]
Split test_fuzz by a format type in order to test a specific format easily.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 22:34:06 +0000 (07:34 +0900)]
Separate test_write_format_7zip.c into three files.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 12:34:24 +0000 (21:34 +0900)]
Issue 269. Stop using deprecated functions in example source code.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 12:08:39 +0000 (21:08 +0900)]
Fix memory leaks in pax writer when handing mac metadata.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 11:30:49 +0000 (20:30 +0900)]
Fix the potential for a buffer underflow.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 11:20:50 +0000 (20:20 +0900)]
Fix a null pointer dereference bug in zip writer.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 11:05:33 +0000 (20:05 +0900)]
Split a test for 7-Zip writer into seven tests to know easily what
compression fails.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 10:53:27 +0000 (19:53 +0900)]
Fix a null pointer dereference bug in ar writer.
Michihiro NAKAJIMA [Sun, 2 Dec 2012 09:10:00 +0000 (18:10 +0900)]
Fix a bug in 7zip writer that the writer cannot correctly handle
large data(more than 60K bytes) in a writing request.
Tim Kientzle [Sat, 1 Dec 2012 05:56:32 +0000 (21:56 -0800)]
Tweak a comment.
Tim Kientzle [Sat, 1 Dec 2012 05:48:48 +0000 (21:48 -0800)]
Fix util.c compile, remove extraneous NULL check.
Tim Kientzle [Sat, 1 Dec 2012 05:40:02 +0000 (21:40 -0800)]
Merge branch 'master' of github.com:libarchive/libarchive
Michihiro NAKAJIMA [Fri, 30 Nov 2012 01:21:28 +0000 (10:21 +0900)]
Do not return "Unknown module name" error when a format name matches
a specfied module name and the option name is wrong and filter names
do not matche the specfied module name.
Michihiro NAKAJIMA [Wed, 14 Nov 2012 07:10:40 +0000 (16:10 +0900)]
Fix bugs in test programs which Clang Static Analyzer pointed out.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 11:31:08 +0000 (20:31 +0900)]
Fix build failure without HAVE_UTIMES.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 11:24:33 +0000 (20:24 +0900)]
Fix test failure without zlib.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 10:59:13 +0000 (19:59 +0900)]
Fix build failure without zlib.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 10:54:24 +0000 (19:54 +0900)]
Fix build failure on linux.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 10:29:28 +0000 (19:29 +0900)]
Fix a bug that Clang Static Analyzer complains that
"Dereference of null pointer".
Michihiro NAKAJIMA [Sun, 11 Nov 2012 10:23:28 +0000 (19:23 +0900)]
Plug a memory leak.
Michihiro NAKAJIMA [Sun, 11 Nov 2012 09:39:07 +0000 (18:39 +0900)]
Fix build failure on FreeBSD.
Michihiro NAKAJIMA [Thu, 8 Nov 2012 06:29:29 +0000 (15:29 +0900)]
Add support for __MACOSX directory in Zip archives, which resource
forks are stored in.
Michihiro NAKAJIMA [Wed, 7 Nov 2012 11:32:26 +0000 (20:32 +0900)]
Fix build failure without zlib and liblzo.
Michihiro NAKAJIMA [Wed, 7 Nov 2012 10:43:17 +0000 (19:43 +0900)]
Increase the number of data bytes reading from the tail of
a zip archive file up to 16K bytes because Info-Zip may do so.
Michihiro NAKAJIMA [Wed, 7 Nov 2012 07:20:59 +0000 (16:20 +0900)]
Fix build failure with zlib on Win64.
Michihiro NAKAJIMA [Wed, 7 Nov 2012 06:32:05 +0000 (15:32 +0900)]
Fix test failure on Windows. A '\' is a path separater on Windows.
Michihiro NAKAJIMA [Wed, 7 Nov 2012 06:25:47 +0000 (15:25 +0900)]
Fix build failure on Win64.
Michihiro NAKAJIMA [Fri, 26 Oct 2012 06:02:24 +0000 (15:02 +0900)]
Add support for TAR_WRITE_OPTIONS and TAR_READ_OPTIONS environmment
variables to set default options to writing or reading archives with
bsdtar.
Michihiro NAKAJIMA [Tue, 6 Nov 2012 22:58:23 +0000 (07:58 +0900)]
Use memcmp to check null bytes for iso9660 bidder to improve
the performance.
Michihiro NAKAJIMA [Tue, 6 Nov 2012 21:49:01 +0000 (06:49 +0900)]
Fix style. No functional changes.
Michihiro NAKAJIMA [Tue, 6 Nov 2012 11:20:38 +0000 (20:20 +0900)]
Fix issue 271; Handle the central directory including a zip comment.
Michihiro NAKAJIMA [Tue, 6 Nov 2012 00:05:03 +0000 (16:05 -0800)]
Merge pull request #29 from travitch/archive-read-open-file-fix
Fix an error test on the result from fread
Michihiro NAKAJIMA [Mon, 5 Nov 2012 23:17:03 +0000 (08:17 +0900)]
Remove debug code for HFS+ compresison.
Michihiro NAKAJIMA [Sun, 4 Nov 2012 00:22:28 +0000 (09:22 +0900)]
Do not directly copy mac metadata to the data fork file if the file
is compressed by HFS+ compression through copyfile() because it makes
the file uncompressed.
Michihiro NAKAJIMA [Fri, 2 Nov 2012 06:21:48 +0000 (15:21 +0900)]
Cancel HFS+ compression if the compressed size is not enouph small.
Tristan Ravitch [Fri, 2 Nov 2012 14:49:44 +0000 (09:49 -0500)]
Fix an error test on the result from fread
fread returns a short byte count on error (and ferror has to be used
to determine if it really was an error). There was a check for < 0,
which fread cannot return.
Michihiro NAKAJIMA [Fri, 2 Nov 2012 00:42:02 +0000 (09:42 +0900)]
Improve a test for HFS+ Compression.
Michihiro NAKAJIMA [Fri, 2 Nov 2012 00:12:09 +0000 (09:12 +0900)]
Correct the location the resource fork footer is added.
Michihiro NAKAJIMA [Thu, 1 Nov 2012 23:50:47 +0000 (08:50 +0900)]
If a restoring file name begins with "._" and its form is
AppleDouble, link it with the data fork file and remove it.
Michihiro NAKAJIMA [Thu, 1 Nov 2012 20:50:05 +0000 (05:50 +0900)]
Use mkstemp rather than tempnam for security.
Michihiro NAKAJIMA [Thu, 1 Nov 2012 20:29:20 +0000 (05:29 +0900)]
Change compiling conditions for support for HFS+ Compression
since it is only for MacOS X.