]>
git.ipfire.org Git - thirdparty/libarchive.git/log
Tim Kientzle [Mon, 9 Nov 2009 05:34:56 +0000 (00:34 -0500)]
pkgconfig support from Xavier, plus a couple of missing files added to
the distfile generation.
SVN-Revision: 1614
Tim Kientzle [Sun, 8 Nov 2009 22:28:50 +0000 (17:28 -0500)]
If you overflow an int64_t, use INT64_MAX, not UINT64_MAX.
SVN-Revision: 1613
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:20:16 +0000 (15:20 -0500)]
Value stored to 'cpio' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1612
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:15:34 +0000 (15:15 -0500)]
Value stored to 'ret' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1611
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:12:17 +0000 (15:12 -0500)]
Value stored to 'target_block_length' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1610
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:09:50 +0000 (15:09 -0500)]
Value stored to 'state' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1609
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:04:27 +0000 (15:04 -0500)]
Value stored to 'target_block_length' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1608
Michihiro NAKAJIMA [Sun, 8 Nov 2009 20:01:27 +0000 (15:01 -0500)]
- Value stored to 'ret' is never read.
- Value stored to 'bits' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1607
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:54:20 +0000 (14:54 -0500)]
Value stored to 'target_block_length' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1606
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:50:29 +0000 (14:50 -0500)]
Value stored to 'r' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1605
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:47:28 +0000 (14:47 -0500)]
Value stored to 'ret' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1604
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:41:53 +0000 (14:41 -0500)]
- Value stored to 'err' is never read.
- Value stored to 'dest' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1603
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:36:57 +0000 (14:36 -0500)]
- Value stored to 'line' is never read.
- Value stored to 'h' is never read.
- Value stored to 'old_entry' during its initialization is never read.
- Value stored to 'dest' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1602
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:24:12 +0000 (14:24 -0500)]
Value stored to 'r' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1601
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:18:54 +0000 (14:18 -0500)]
Value stored to 'ar' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1600
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:15:11 +0000 (14:15 -0500)]
Value stored to 'l' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1599
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:09:20 +0000 (14:09 -0500)]
Value stored to 'read_avail' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1598
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:06:43 +0000 (14:06 -0500)]
Return ARCHIVE_FATAL if BZ2_bzDecompressEnd failed.
Found by Clang Static Analyzer.
SVN-Revision: 1597
Michihiro NAKAJIMA [Sun, 8 Nov 2009 19:00:01 +0000 (14:00 -0500)]
- Value stored to 'filter' is never read.
- Value stored to 'dummy_buffer' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1596
Michihiro NAKAJIMA [Sun, 8 Nov 2009 18:47:56 +0000 (13:47 -0500)]
Value stored to 'target_block_length' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1595
Michihiro NAKAJIMA [Sun, 8 Nov 2009 18:36:26 +0000 (13:36 -0500)]
Return ARCHIVE_WARN properly if large inode number was truncated.
Found by Clang Static Analyzer.
SVN-Revision: 1594
Michihiro NAKAJIMA [Sun, 8 Nov 2009 11:52:49 +0000 (06:52 -0500)]
Remove duplicate code.
SVN-Revision: 1593
Michihiro NAKAJIMA [Sun, 8 Nov 2009 10:44:57 +0000 (05:44 -0500)]
It is better that all of functions of checking volume descriptor
have the same interface.
SVN-Revision: 1592
Michihiro NAKAJIMA [Sun, 8 Nov 2009 10:23:59 +0000 (05:23 -0500)]
If a volume description is found, do not try checking of another
volume description.
SVN-Revision: 1591
Tim Kientzle [Sun, 8 Nov 2009 07:06:02 +0000 (02:06 -0500)]
Thanks to Xavier for pointing out that the security.capability xattr
on Linux must be restored last. Let's try moving xattr restore to
after file data and see if that works any better; we may end up having
to do a full xattr restore both before and after the file data.
This also changes the behavior of xattr restore failures; they now
cause warnings when the entry is finished (which can be as late as
archive_write_close()) rather than when the header is written.
SVN-Revision: 1590
Tim Kientzle [Sun, 8 Nov 2009 02:33:34 +0000 (21:33 -0500)]
Be a little more careful about identifying mdoc-format manpages.
In particular, I recently had the update script pick up and try
to convert libarchive.so.5. Ouch.
SVN-Revision: 1589
Tim Kientzle [Sun, 8 Nov 2009 02:32:03 +0000 (21:32 -0500)]
Fix a couple of markup errors and clarify the discussion of miscellaneous
tar extensions.
SVN-Revision: 1588
Tim Kientzle [Sat, 7 Nov 2009 23:35:18 +0000 (18:35 -0500)]
Make the CTest integration simpler and a little more robust
by just reading list.h directly into cmake. This only requires
a suitable "DEFINE_TEST" macro.
SVN-Revision: 1587
Tim Kientzle [Sat, 7 Nov 2009 23:08:41 +0000 (18:08 -0500)]
CDash support, thanks to Brad King.
SVN-Revision: 1586
Tim Kientzle [Sat, 7 Nov 2009 07:31:15 +0000 (02:31 -0500)]
MinGW defines a value of S_IFBLK which is both useless and wrong.
Comment out this sanity-check on MinGW. (It already doesn't apply
to VC++ because Microsoft doesn't define S_IFBLK.)
test_entry sanity-checks that S_IFBLK has the expected value on every
platform, even though libarchive per se doesn't depend on this. So far,
MinGW is the only platform that's ever broken one of these checks, which
is reassuring, since it means that clients can reasonably pass unaltered
st_mode values into libarchive. Even on MinGW, it will work, since
MinGW can never actually set S_IFBLK (Windows filesystems don't support it).
SVN-Revision: 1585
Michihiro NAKAJIMA [Fri, 6 Nov 2009 15:16:19 +0000 (10:16 -0500)]
Improve detecting LZMA stream data.
- Checking of the first byte of LZMA stream.
* lzma of XZ Utils with option -e records 0x5d in the first byte.
* It is possible that lzma of LZMA SDK records various data in the
first byte.
- Checking of second and third bytes of LZMA stream.
* lzma of LZMA SDK with option -d12,-d13,-d14 and -d15 records
0x1000,0x2000,0x4000 and 0x8000 in second through fifth bytes
of LZMA stream. It means second and third bytes are not always
zero.
- Checking of sixth through fourteenth bytes of LZMA stream.
* This bytes are recorded uncompressed size and lzma of XZ Utils
always records -1 in this field.
SVN-Revision: 1584
Björn Jacke [Fri, 6 Nov 2009 11:42:45 +0000 (06:42 -0500)]
add support for setting timestamps with ns resolution. utimensat and
futimens are defined in POSIX.1-2008. They are available on Linux since
glibc 2.6 and kernel 2.6.22.
SVN-Revision: 1583
Tim Kientzle [Fri, 6 Nov 2009 06:04:21 +0000 (01:04 -0500)]
Cast away a minor type mismatch.
SVN-Revision: 1582
Michihiro NAKAJIMA [Thu, 5 Nov 2009 12:01:48 +0000 (07:01 -0500)]
Add some tests for LZMA as other compression.
SVN-Revision: 1581
Tim Kientzle [Thu, 5 Nov 2009 05:44:42 +0000 (00:44 -0500)]
Whitespace fix.
SVN-Revision: 1580
Michihiro NAKAJIMA [Mon, 2 Nov 2009 06:48:54 +0000 (01:48 -0500)]
Compression of test data for ISO reader switch from bzip2/gz to compress
so that all of ISO reader tests can be worked on every platform.
SVN-Revision: 1579
Tim Kientzle [Mon, 2 Nov 2009 04:39:11 +0000 (23:39 -0500)]
Rename LOCALE_DE to LOCALE_UTF8, since the code assumes it's a UTF8 locale. Set it to NULL on Windows, change some of the tests to skip when this is NULL. This removes most of the assertion failures in test_entry.
SVN-Revision: 1578
Tim Kientzle [Mon, 2 Nov 2009 04:37:25 +0000 (23:37 -0500)]
Include needsAscent on the initial stack entry so that we correctly chdir() back to our starting directory when the traversal is complete.
On Windows, handle wildcard setup in tree_open().
SVN-Revision: 1577
Michihiro NAKAJIMA [Mon, 2 Nov 2009 03:04:10 +0000 (22:04 -0500)]
Revert from previous change of tar/tree.c. It's my local hack.
SVN-Revision: 1576
Michihiro NAKAJIMA [Mon, 2 Nov 2009 02:59:56 +0000 (21:59 -0500)]
To be robust when ISO image is broken.
SVN-Revision: 1575
Tim Kientzle [Mon, 2 Nov 2009 02:42:21 +0000 (21:42 -0500)]
Use CP_ACP instead of CP_THREAD_ACP.
SVN-Revision: 1574
Tim Kientzle [Sun, 1 Nov 2009 22:27:45 +0000 (17:27 -0500)]
Fuzz the mtree reader: Extract the sample file and add it to the list of fuzz-test inputs.
SVN-Revision: 1573
Tim Kientzle [Sun, 1 Nov 2009 21:51:33 +0000 (16:51 -0500)]
Fix the name of one of the distfiles.
SVN-Revision: 1572
Tim Kientzle [Sun, 1 Nov 2009 21:49:53 +0000 (16:49 -0500)]
Extend the fuzz tester:
* Test gzip reader
* Test xz reader
* Test cpio_bin format
SVN-Revision: 1571
Tim Kientzle [Sun, 1 Nov 2009 21:46:24 +0000 (16:46 -0500)]
Extend the fuzz tester:
* Compress test_fuzz_1.iso so we can save space in source control and so we can fuzz a compressed file.
* Extract the "ar" sample file so we can use it in the fuzz tester.
SVN-Revision: 1570
Tim Kientzle [Sun, 1 Nov 2009 18:07:03 +0000 (13:07 -0500)]
Use the format_raw handler to decompress files before trying to
fuzz them. This will allow us to re-use more of the ISO sample files,
for instance.
SVN-Revision: 1569
Tim Kientzle [Sun, 1 Nov 2009 18:05:18 +0000 (13:05 -0500)]
-vvv should be full verbosity just like -vv.
SVN-Revision: 1568
Michihiro NAKAJIMA [Sun, 1 Nov 2009 08:47:46 +0000 (03:47 -0500)]
Do not reject a directory entry which couldn't find the original place of
itself.
SVN-Revision: 1567
Michihiro NAKAJIMA [Sun, 1 Nov 2009 07:46:57 +0000 (02:46 -0500)]
The file queue which has "CL" extension(called cl_files) must use its
cl_offset(which indicates a offset of the relocated directory entry)
for heap key. The function relocate_dir()'s algorithm expects cl_files
in order of cl_offset.
SVN-Revision: 1566
Tim Kientzle [Sun, 1 Nov 2009 06:56:20 +0000 (01:56 -0500)]
Make the __FBSDID() handling more platform-agnostic by using
HAVE_SYS_CDEFS_H to control the inclusion of sys/cdefs.h and
defining a fake __FBSDID() macro if we need one. In particular,
this deals a lot more gracefully with systems that are not
FreeBSD but use FreeBSD-derived system headers.
See Issue 46 on libarchive.googlecode.com for discussion.
Submitted by: cpr420
SVN-Revision: 1565
Tim Kientzle [Sun, 1 Nov 2009 06:48:39 +0000 (01:48 -0500)]
Whitespace fix.
SVN-Revision: 1564
Tim Kientzle [Sun, 1 Nov 2009 02:36:25 +0000 (22:36 -0400)]
Avoid %j and uintmax in cpio.
SVN-Revision: 1563
Tim Kientzle [Sun, 1 Nov 2009 02:14:14 +0000 (22:14 -0400)]
Trying to figure out what printf modifiers to use on what platforms to
display 64-bit values is getting to be real PITA. Just roll our
own conversion and use that.
SVN-Revision: 1562
Tim Kientzle [Sat, 31 Oct 2009 22:47:51 +0000 (18:47 -0400)]
Get int64_t on Haiku.
SVN-Revision: 1561
Tim Kientzle [Sat, 31 Oct 2009 22:45:33 +0000 (18:45 -0400)]
Be a little more selective when verifying mode values. In particular,
ignore extra high-order bits that are added by Haiku's BFS filesystem.
SVN-Revision: 1560
Tim Kientzle [Sat, 31 Oct 2009 20:03:25 +0000 (16:03 -0400)]
Windows build fix.
SVN-Revision: 1559
Tim Kientzle [Sat, 31 Oct 2009 19:24:09 +0000 (15:24 -0400)]
archive_entry_copy_bhfi should only be built on Windows.
SVN-Revision: 1558
Tim Kientzle [Sat, 31 Oct 2009 17:35:00 +0000 (13:35 -0400)]
Fix some compiler warnings: Mostly just removing unused parameters.
SVN-Revision: 1557
Tim Kientzle [Sat, 31 Oct 2009 17:19:37 +0000 (13:19 -0400)]
Skip hardlink checks on Haiku, remove some ancient hacks to get
libarchive_test to work against libarchive pre-1.9.
SVN-Revision: 1556
Tim Kientzle [Sat, 31 Oct 2009 17:18:31 +0000 (13:18 -0400)]
Skip the root uname test on both Cygwin and Haiku (neither of which has
predictable usernames for UID 0, so this test doesn't work on either one).
SVN-Revision: 1555
Tim Kientzle [Sat, 31 Oct 2009 17:17:14 +0000 (13:17 -0400)]
Tweak for Haiku.
SVN-Revision: 1554
Tim Kientzle [Sat, 31 Oct 2009 17:16:37 +0000 (13:16 -0400)]
Shuffle the major/minor/makedev support a bit; this should work
on both Windows and Haiku.
SVN-Revision: 1553
Tim Kientzle [Sat, 31 Oct 2009 17:14:50 +0000 (13:14 -0400)]
Synchronize the test harnesses and force atime tests to always pass
on Haiku (which doesn't support atime).
SVN-Revision: 1552
Michihiro NAKAJIMA [Sat, 31 Oct 2009 05:37:10 +0000 (01:37 -0400)]
Add extra text before the uuencoded data.
SVN-Revision: 1551
Michihiro NAKAJIMA [Sat, 31 Oct 2009 05:03:48 +0000 (01:03 -0400)]
Bug fix. Bidding failed when a character of the end of buffer which
was checked for bidding was '\n' but not the end of file.
SVN-Revision: 1550
Michihiro NAKAJIMA [Sat, 31 Oct 2009 03:13:50 +0000 (23:13 -0400)]
Improve directory order; make sure a directory entry is exposed
after its parent especially sub directories under the rr_moved
directory.
SVN-Revision: 1549
Michihiro NAKAJIMA [Fri, 30 Oct 2009 12:22:36 +0000 (08:22 -0400)]
Fix a bug; use relevant function for reading create time.
SVN-Revision: 1548
Michihiro NAKAJIMA [Fri, 30 Oct 2009 10:46:33 +0000 (06:46 -0400)]
Add a test uudecode filter decodes a data of the Base64 encoding.
SVN-Revision: 1547
Michihiro NAKAJIMA [Fri, 30 Oct 2009 10:31:07 +0000 (06:31 -0400)]
Make sure a line is fully read before checking it for bidding
for uudecode.
SVN-Revision: 1546
Michihiro NAKAJIMA [Fri, 30 Oct 2009 06:57:36 +0000 (02:57 -0400)]
Make sure uudecode filter handles lines which are broken
across multiple reads.
Suggested by Tim.
SVN-Revision: 1545
Michihiro NAKAJIMA [Thu, 22 Oct 2009 06:05:57 +0000 (02:05 -0400)]
More sanity check for ISO 9660.
Add check for Enhanced Volume Descriptor and other Supplementary Volume
Descriptor.
SVN-Revision: 1543
Michihiro NAKAJIMA [Tue, 20 Oct 2009 06:16:28 +0000 (02:16 -0400)]
Add uudecode filter.
SVN-Revision: 1542
Michihiro NAKAJIMA [Sun, 18 Oct 2009 05:31:20 +0000 (01:31 -0400)]
Set return parameters.
SVN-Revision: 1541
Michihiro NAKAJIMA [Sun, 18 Oct 2009 04:47:49 +0000 (00:47 -0400)]
Fix memory leak.
SVN-Revision: 1540
Michihiro NAKAJIMA [Fri, 16 Oct 2009 19:35:40 +0000 (15:35 -0400)]
Improve queueing SUSP "CE" requests; it uses heapsort for performance now.
SVN-Revision: 1539
Michihiro NAKAJIMA [Fri, 16 Oct 2009 17:08:47 +0000 (13:08 -0400)]
File size is no longer needed to check whether we have to set hardlink
information to the file or not.
SVN-Revision: 1538
Michihiro NAKAJIMA [Fri, 16 Oct 2009 16:42:36 +0000 (12:42 -0400)]
Add support for multi extent.
e.g.
-- Reuslt of previous bsdtar.
%bsdtar tvf test_read_format_iso_multi_extent.iso
dr-xr-xr-x 2 1 2 2048 1 2 1970 .
-r--r--r-- 1 1 2 129024 1 2 1970 file
-r--r--r-- 1 1 2 129024 1 2 1970 file
-r--r--r-- 1 1 2 4232 1 2 1970 file
-- After patch.
%bsdtar tvf test_read_format_iso_multi_extent.iso
dr-xr-xr-x 2 1 2 2048 1 2 1970 .
-r--r--r-- 1 1 2 262280 1 2 1970 file
SVN-Revision: 1537
Tim Kientzle [Fri, 16 Oct 2009 05:54:32 +0000 (01:54 -0400)]
svn:ignore Makefiles in these directories.
In particular, let's try not to have anyone accidentally checkin the
cmake-generated Makefiles.
SVN-Revision: 1536
Tim Kientzle [Fri, 16 Oct 2009 05:51:37 +0000 (01:51 -0400)]
Remove the FreeBSD-specific Makefiles.
SVN-Revision: 1535
Tim Kientzle [Fri, 16 Oct 2009 03:54:55 +0000 (23:54 -0400)]
Windows build fixes from Bill Hoffman.
SVN-Revision: 1534
Michihiro NAKAJIMA [Fri, 16 Oct 2009 00:03:07 +0000 (20:03 -0400)]
File size is no longer used in heapsort; next_cache_entry function
can recogize that there are empty files among hardlink files which
are not empty.
SVN-Revision: 1533
Michihiro NAKAJIMA [Thu, 15 Oct 2009 22:00:43 +0000 (18:00 -0400)]
When location has negative value, it can be used for file number.
SVN-Revision: 1532
Michihiro NAKAJIMA [Thu, 15 Oct 2009 15:58:08 +0000 (11:58 -0400)]
Unify cache_files and pending_dirs.
SVN-Revision: 1531
Michihiro NAKAJIMA [Thu, 15 Oct 2009 14:28:09 +0000 (10:28 -0400)]
Heap routine is converted to be common function so that
iso9660->re_dirs and iso9660->cl_fiels use it for performance.
SVN-Revision: 1530
Michihiro NAKAJIMA [Thu, 15 Oct 2009 11:37:18 +0000 (07:37 -0400)]
Improve handling of Rockridge extensions' rr_moved directory and
following sub directories.
Add corresponding test.
Unfortunately, some tests need tweaks due to difference of ordering of
hardlink files(which have the same offset); it's characteristic of heap.
SVN-Revision: 1529
Michihiro NAKAJIMA [Thu, 15 Oct 2009 11:14:18 +0000 (07:14 -0400)]
Slightly simplify reading Directory Record.
SVN-Revision: 1528
Michihiro NAKAJIMA [Wed, 14 Oct 2009 19:11:27 +0000 (15:11 -0400)]
Minor fix.
SVN-Revision: 1527
Michihiro NAKAJIMA [Wed, 14 Oct 2009 19:06:28 +0000 (15:06 -0400)]
Tell user about SUSP "CE" extension has invalid value if occur.
SVN-Revision: 1526
Michihiro NAKAJIMA [Wed, 14 Oct 2009 18:16:28 +0000 (14:16 -0400)]
Siplify some code.
SVN-Revision: 1525
Michihiro NAKAJIMA [Wed, 14 Oct 2009 16:43:55 +0000 (12:43 -0400)]
Split reading data which is recorded by SUSP CE extension.
SVN-Revision: 1524
Michihiro NAKAJIMA [Wed, 14 Oct 2009 15:22:32 +0000 (11:22 -0400)]
Make sure that it does not lost number by overflow.
SVN-Revision: 1523
Michihiro NAKAJIMA [Wed, 14 Oct 2009 15:08:35 +0000 (11:08 -0400)]
Rename some variable name from location to offset, which is apt for processing.
SVN-Revision: 1522
Michihiro NAKAJIMA [Wed, 14 Oct 2009 11:27:45 +0000 (07:27 -0400)]
Minor change to reduce difference from proper supporting rr_move directory,
which I'm going to commit.
This change does not affect any results.
SVN-Revision: 1521
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:37:54 +0000 (06:37 -0400)]
Eliminate compiling warning on Visual Studio.
SVN-Revision: 1520
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:34:54 +0000 (06:34 -0400)]
Add check that int32_t is available, and define it if not.
SVN-Revision: 1519
Michihiro NAKAJIMA [Wed, 14 Oct 2009 10:10:00 +0000 (06:10 -0400)]
Avoid core dump.
SVN-Revision: 1518
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:47:40 +0000 (15:47 -0400)]
Split a part of reading subdirectories from
archive_read_format_iso9660_read_header function.
This is preparation of support RRIP "CL" and "RE" extensions
for proper handling of "rr_moved" directory.
SVN-Revision: 1517
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:18:31 +0000 (15:18 -0400)]
Rename struct vd parameter names from `sector_number' to `location' and
from `block_size' to `size'.
SVN-Revision: 1516
Michihiro NAKAJIMA [Tue, 13 Oct 2009 19:04:56 +0000 (15:04 -0400)]
Style fix.
SVN-Revision: 1515
Michihiro NAKAJIMA [Tue, 13 Oct 2009 18:56:31 +0000 (14:56 -0400)]
Add sanity check.
SVN-Revision: 1514