]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
3 years agoAdded error message when archive extraction fails 1609/head
jiat75 [Sat, 30 Oct 2021 03:47:15 +0000 (11:47 +0800)] 
Added error message when archive extraction fails

3 years agoMerge pull request #1602 from evelikov/editorconfig
Martin Matuška [Tue, 26 Oct 2021 12:22:23 +0000 (14:22 +0200)] 
Merge pull request #1602 from evelikov/editorconfig

editorconfig: add simple top-level file

3 years agoMerge pull request #1589 from JiaT75/added-missing-checks-for-canLzip-canLzma-and...
Martin Matuška [Tue, 26 Oct 2021 12:21:51 +0000 (14:21 +0200)] 
Merge pull request #1589 from JiaT75/added-missing-checks-for-canLzip-canLzma-and-canXz

added missing checks for canLzip, canLzma, and canXz

3 years agoMerge pull request #1590 from jsonn/master
Martin Matuška [Tue, 26 Oct 2021 12:03:10 +0000 (14:03 +0200)] 
Merge pull request #1590 from jsonn/master

Support ARCHIVE_EXTRACT_SECURE_NODOTDOT on Windows

3 years agoMerge pull request #1593 from JiaT75/added_bin_to_gitignore
Martin Matuška [Tue, 26 Oct 2021 11:51:25 +0000 (13:51 +0200)] 
Merge pull request #1593 from JiaT75/added_bin_to_gitignore

Added bin folder to .gitignore

3 years agoMerge pull request #1604 from AdamKorcz/fuzz1
Martin Matuška [Tue, 26 Oct 2021 11:24:03 +0000 (13:24 +0200)] 
Merge pull request #1604 from AdamKorcz/fuzz1

Add CIFuzz

3 years agoAdd CIFuzz 1604/head
AdamKorcz [Tue, 26 Oct 2021 10:10:08 +0000 (11:10 +0100)] 
Add CIFuzz

3 years agoeditorconfig: add simple top-level file 1602/head
Emil Velikov [Sat, 23 Oct 2021 14:32:12 +0000 (15:32 +0100)] 
editorconfig: add simple top-level file

Add a simple top-level .editorconfig file to manage common attributes
such as indentation style, trailing whitespace and newline at end of
file. The format is wide spread and has support for nearly every editor
out there - see https://editorconfig.org/ for more.

Majority of the project is C - which uses tabs, although there are some
CMake files using 2 space indent and shell scripts - predominantly using
4 space indent.

This makes it harder for casual contributors to butcher things :-)

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years agoAdded bin folder to .gitignore 1593/head
jiat75 [Sat, 9 Oct 2021 05:58:44 +0000 (13:58 +0800)] 
Added bin folder to .gitignore

3 years agoRemoved unused function. 1589/head
jiat75 [Thu, 7 Oct 2021 14:43:08 +0000 (22:43 +0800)] 
Removed unused function.

3 years agoSupport ARCHIVE_EXTRACT_SECURE_NODOTDOT on Windows 1590/head
Joerg Sonnenberger [Wed, 6 Oct 2021 22:24:30 +0000 (00:24 +0200)] 
Support ARCHIVE_EXTRACT_SECURE_NODOTDOT on Windows

3 years agoadded missing checks for canLzip, canLzma, and canXz
jiat75 [Sun, 3 Oct 2021 07:23:28 +0000 (15:23 +0800)] 
added missing checks for canLzip, canLzma, and canXz

3 years agoMerge pull request #1575 from Hello71/patch-1
Martin Matuška [Thu, 30 Sep 2021 13:41:29 +0000 (15:41 +0200)] 
Merge pull request #1575 from Hello71/patch-1

libarchive.3: update archive format list

3 years agoMerge pull request #1567 from russelltg/russell_zstd_threads
Martin Matuška [Thu, 30 Sep 2021 11:20:05 +0000 (13:20 +0200)] 
Merge pull request #1567 from russelltg/russell_zstd_threads

zstd filter writer: add threads option

3 years agoMerge pull request #1569 from ferivoz/dir
Martin Matuška [Thu, 30 Sep 2021 11:17:34 +0000 (13:17 +0200)] 
Merge pull request #1569 from ferivoz/dir

Ignore size of directories with regular type

3 years agolibarchive.3: update archive format list 1575/head
Alex Xu [Fri, 17 Sep 2021 02:33:55 +0000 (02:33 +0000)] 
libarchive.3: update archive format list

Add 7-Zip and WARC to read formats, add many compressors, sort lists in approximate lexicographical order.

3 years agoAdded test case for ustar directory handling 1569/head
Samanta Navarro [Sun, 29 Aug 2021 11:59:29 +0000 (11:59 +0000)] 
Added test case for ustar directory handling

Based on test_compat_tar_hardlink.c and with input by Tim Kientzle.

3 years agoMerge pull request #1570 from ferivoz/mac
Martin Matuška [Sat, 4 Sep 2021 22:28:16 +0000 (00:28 +0200)] 
Merge pull request #1570 from ferivoz/mac

Fix size_t cast in read_mac_metadata_blob

3 years agoIgnore size of directories with regular type
Samanta Navarro [Sat, 28 Aug 2021 11:53:24 +0000 (11:53 +0000)] 
Ignore size of directories with regular type

In old tar formats directories are specified by appending a slash to
their names.

Directories may have sizes, but they do not have data blocks. Keep this
in mind and avoid skipping data blocks when encountering directories.

3 years agoFix size_t cast in read_mac_metadata_blob 1570/head
Samanta Navarro [Sat, 28 Aug 2021 11:58:00 +0000 (11:58 +0000)] 
Fix size_t cast in read_mac_metadata_blob

The size_t data type on 32 bit systems is smaller than int64_t. Check
the int64_t value before casting to size_t. If the value is too large
then stop operation instead of continuing operation with truncated
value.

3 years agoarchive_write_set_format_cpio_binary: fix compilation on OpenBSD
Martin Matuska [Fri, 27 Aug 2021 16:04:59 +0000 (18:04 +0200)] 
archive_write_set_format_cpio_binary: fix compilation on OpenBSD

Rename swap16 and swap32 to la_swap16 and la_swap32.

3 years agoFix following symlinks when processing the fixup list
Martin Matuska [Fri, 27 Aug 2021 08:56:28 +0000 (10:56 +0200)] 
Fix following symlinks when processing the fixup list

The previous fix in b41daecb5 was incomplete. Fixup entries are
given the original path without calling cleanup_pathname().
To make sure we don't follow a symlink, we must strip trailing
slashes from the path.

The fixup entries are always directories. Make sure we try to modify
only directories by providing O_DIRECTORY to open() (if supported)
and if it fails to check directory via lstat().

Fixes #1566

3 years agofix --threads commandline 1567/head
Russell Greene [Wed, 25 Aug 2021 17:26:48 +0000 (13:26 -0400)] 
fix --threads commandline

3 years agozstd filter writer: add threads option
Russell Greene [Wed, 25 Aug 2021 16:09:19 +0000 (12:09 -0400)] 
zstd filter writer: add threads option

3 years agoCI: provide a more complete Ubuntu package list
Martin Matuska [Sun, 22 Aug 2021 23:06:27 +0000 (01:06 +0200)] 
CI: provide a more complete Ubuntu package list

3 years agoLibarchive 3.5.3dev
Martin Matuska [Sun, 22 Aug 2021 22:50:26 +0000 (00:50 +0200)] 
Libarchive 3.5.3dev

3 years agoRelease 3.5.2 v3.5.2
Martin Matuska [Sun, 22 Aug 2021 15:33:36 +0000 (17:33 +0200)] 
Release 3.5.2

3 years agoSkip archive_write_disk_fixup test on Windows
Martin Matuska [Sun, 22 Aug 2021 13:53:31 +0000 (15:53 +0200)] 
Skip archive_write_disk_fixup test on Windows

3 years agoDo not follow symlinks when processing the fixup list
Martin Matuska [Thu, 19 Aug 2021 23:50:27 +0000 (01:50 +0200)] 
Do not follow symlinks when processing the fixup list

Use lchmod() instead of chmod() and tell the remaining functions that the
real file to be modified is a symbolic link.

Fixes #1566

3 years agoNever follow symlinks when setting file flags on Linux
Martin Matuska [Sun, 22 Aug 2021 01:53:28 +0000 (03:53 +0200)] 
Never follow symlinks when setting file flags on Linux

When opening a file descriptor to set file flags on linux, ensure
no symbolic links are followed. This fixes the case when an archive
contains a directory entry followed by a symlink entry with the same
path. The fixup code would modify file flags of the symlink target.

3 years agoFix handling of symbolic link ACLs
Martin Matuska [Sat, 21 Aug 2021 18:51:07 +0000 (20:51 +0200)] 
Fix handling of symbolic link ACLs

On Linux ACLs on symbolic links are not supported.
We must avoid calling acl_set_file() on symbolic links as their
targets are modified instead.

While here, do not try to set default ACLs on non-directories.

Fixes #1565

3 years agowrite_disk_posix: rename variable in check_symlinks_fsobj()
Martin Matuska [Sat, 21 Aug 2021 07:07:54 +0000 (09:07 +0200)] 
write_disk_posix: rename variable in check_symlinks_fsobj()

Rename the flag "extracting_hardlink" to "checking_linkname" to
be more accurate about its use. If the variable is non-zero it
means that check_symlinks_fsobj() is called on the linkname
when a hardlink is going to be created.

3 years agoFix extracting hardlinks to symlinks
Martin Matuska [Fri, 20 Aug 2021 23:39:31 +0000 (01:39 +0200)] 
Fix extracting hardlinks to symlinks

On platforms that support the linkat(2) function we can safely
write hardlinks to symlinks as linkat(2) does not follow symlinks
by default.

Fixes #1044

3 years agoAdd ability to skip atime test in directory traversals
Martin Matuska [Fri, 20 Aug 2021 09:58:41 +0000 (11:58 +0200)] 
Add ability to skip atime test in directory traversals

3 years agoCI: Add FreeBSD 13.0 to Cirrus CI build
Martin Matuska [Wed, 12 May 2021 07:52:44 +0000 (09:52 +0200)] 
CI: Add FreeBSD 13.0 to Cirrus CI build

4 years agoMerge pull request #1542 from ferivoz/intmax
Martin Matuška [Sat, 17 Jul 2021 22:49:43 +0000 (00:49 +0200)] 
Merge pull request #1542 from ferivoz/intmax

Handle all negative int64_t values in mtree/tar

4 years agoMerge pull request #1552 from AndyBrown91/windows-long-path-fix
Martin Matuška [Sat, 17 Jul 2021 22:35:03 +0000 (00:35 +0200)] 
Merge pull request #1552 from AndyBrown91/windows-long-path-fix

Windows: Use full path including prefix when looking up file handle

4 years agoWindows: Use full path including prefix when looking up file handle 1552/head
Andy Brown [Tue, 13 Jul 2021 12:05:19 +0000 (13:05 +0100)] 
Windows: Use full path including prefix when looking up file handle

4 years agoMerge pull request #1540 from ferivoz/typos
Martin Matuška [Wed, 30 Jun 2021 08:24:56 +0000 (10:24 +0200)] 
Merge pull request #1540 from ferivoz/typos

Fix typos

4 years agoMerge pull request #1541 from ferivoz/mutual
Martin Matuška [Wed, 30 Jun 2021 08:23:23 +0000 (10:23 +0200)] 
Merge pull request #1541 from ferivoz/mutual

Fix mutual check in tar sparse handling

4 years agoFix mutual check in tar sparse handling 1541/head
Samanta Navarro [Tue, 1 Jun 2021 11:26:30 +0000 (11:26 +0000)] 
Fix mutual check in tar sparse handling

GNU.sparse.numbytes and GNU.sparse.offset both have to be set before
gnu_add_sparse_entry can be called.

The GNU.sparse.numbytes parser checks for tar->sparse_numbytes.
This has to be tar->sparse_offset instead to work just like the
GNU.sparse.offset parser.

4 years agoFix typos 1540/head
Samanta Navarro [Tue, 1 Jun 2021 11:26:02 +0000 (11:26 +0000)] 
Fix typos

Typos found with codespell

4 years agoHandle all negative int64_t values in mtree/tar 1542/head
Samanta Navarro [Tue, 1 Jun 2021 11:25:03 +0000 (11:25 +0000)] 
Handle all negative int64_t values in mtree/tar

The variable last_digit_limit is negative since INT64_MIN itself is
negative as well. This means that the last digit after "limit" always
leads to maxval.

Turning last_digit_limit positive in itself is not sufficient because
it would lead to a signed integer overflow during shift operation.

If limit is reached and the last digit is last_digit_limit, the number
is at least maxval. The already existing if condition for even larger
(or smaller) values can be reused to prevent the last shift.

In my humble opinion it might make sense to reduce duplicated code and
keep it separated in a utility source file for shared use.

4 years agoRestore comment formatting
Joerg Sonnenberger [Sun, 30 May 2021 21:01:12 +0000 (23:01 +0200)] 
Restore comment formatting

4 years agoMerge pull request #1532 from Gei0r/master
Martin Matuška [Thu, 27 May 2021 09:33:19 +0000 (11:33 +0200)] 
Merge pull request #1532 from Gei0r/master

7zip: Use compression settings from file also for file header

4 years agoMerge pull request #1530 from owtaylor/close-short-writes
Martin Matuška [Thu, 27 May 2021 09:32:21 +0000 (11:32 +0200)] 
Merge pull request #1530 from owtaylor/close-short-writes

On close, handle short writes from archive_write_callback

4 years agoMerge pull request #1529 from owtaylor/getcwd
Martin Matuška [Thu, 27 May 2021 09:32:02 +0000 (11:32 +0200)] 
Merge pull request #1529 from owtaylor/getcwd

Avoid getcwd(0, PATH_MAX) for GNU libc

4 years agoMerge pull request #1509 from mariXanna/fix/#1508
Martin Matuška [Thu, 27 May 2021 07:11:12 +0000 (09:11 +0200)] 
Merge pull request #1509 from mariXanna/fix/#1508

Added support of deflate algorithm in symbolic link decompression for zip archives

4 years agoUse tabs for indentation 1532/head
Adrian Ebeling [Wed, 19 May 2021 06:52:27 +0000 (08:52 +0200)] 
Use tabs for indentation

4 years ago7zip: Use compression settings for file header
Adrian Ebeling [Mon, 17 May 2021 19:11:38 +0000 (21:11 +0200)] 
7zip: Use compression settings for file header

4 years agoOn close, handle short writes from archive_write_callback 1530/head
Owen W. Taylor [Wed, 12 May 2021 20:26:24 +0000 (16:26 -0400)] 
On close, handle short writes from archive_write_callback

The archive_write_callback passed to archive_write_open() is documented as:

 "each call to the write callback function should translate to a single write(2) system call.
  On success, the write callback should return the number of bytes actually written"

And in most places, the code repeatedly calls the write callback, but when flushing
the buffer at close, the write callback was called once, assuming it would write everything.
This could result in a truncated archive.

A test is added to test short writes in different code paths.

4 years agoAvoid getcwd(0, PATH_MAX) for GNU libc 1529/head
Owen W. Taylor [Wed, 12 May 2021 20:37:16 +0000 (16:37 -0400)] 
Avoid getcwd(0, PATH_MAX) for GNU libc

Recent versions of GNU libc and GCC produce a warning on getcwd(0, PATH_MAX):

 test_main.c: In function ‘get_refdir’:
 test_main.c:3684:8: error: argument 1 is null but the corresponding size argument 2 value is 4096 [-Werror=nonnull]
   3684 |  pwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */

This is because getcwd() is marked with the 'write_only (1, 2)' attribute.

Using the alternate getcwd(NULL, 0) path which is supported by GNU libc avoids this.

4 years agoMerge pull request #1502 from tih/cpio-bin-formats
Martin Matuška [Mon, 10 May 2021 19:05:00 +0000 (21:05 +0200)] 
Merge pull request #1502 from tih/cpio-bin-formats

Support for PWB and v7 binary cpio formats

4 years agoMerge pull request #1519 from zoulasc/master
Martin Matuška [Mon, 10 May 2021 19:02:16 +0000 (21:02 +0200)] 
Merge pull request #1519 from zoulasc/master

Extract common transfer setting code for statfs and statvfs.

4 years agoMerge pull request #1520 from odubaj/master
Martin Matuška [Mon, 10 May 2021 19:00:53 +0000 (21:00 +0200)] 
Merge pull request #1520 from odubaj/master

Fixed double free when calling lzx_huffman_init frees pointer ds-

4 years agoCatch up with autoconf changes: 1519/head
Christos Zoulas [Sat, 8 May 2021 20:07:51 +0000 (16:07 -0400)] 
Catch up with autoconf changes:
    HAVE_STRUCT_STATFS
    HAVE_STRUCT_STATFS_F_IOSIZE

4 years agoCast isprint(3) argument to unsigned char to avoid undefined behavior.
Christos Zoulas [Sat, 8 May 2021 20:07:04 +0000 (16:07 -0400)] 
Cast isprint(3) argument to unsigned char to avoid undefined behavior.

4 years agoNetBSD provides a statfs symbol for binary compatibility but does not
Christos Zoulas [Sat, 8 May 2021 20:06:11 +0000 (16:06 -0400)] 
NetBSD provides a statfs symbol for binary compatibility but does not
provide a visible struct statfs. Check for that.

4 years agoMerge remote-tracking branch 'upstream/master'
Christos Zoulas [Sat, 8 May 2021 19:38:34 +0000 (15:38 -0400)] 
Merge remote-tracking branch 'upstream/master'

4 years agoMerge pull request #1504 from legnaleurc/fix-rar-header-skim
Martin Matuška [Sat, 8 May 2021 19:27:56 +0000 (21:27 +0200)] 
Merge pull request #1504 from legnaleurc/fix-rar-header-skim

fix rar header skiming

4 years agofix rar header skiming 1504/head
Wei-Cheng Pan [Tue, 9 Mar 2021 16:34:55 +0000 (16:34 +0000)] 
fix rar header skiming

The available size returned from `__archive_read_ahead` can be larger
then required size. Substract by available size may underflow `skip`,
which will reach EOF too soon.

4 years agoMerge pull request #1524 from DerDakon/cpio-ext
Martin Matuška [Fri, 7 May 2021 15:37:38 +0000 (17:37 +0200)] 
Merge pull request #1524 from DerDakon/cpio-ext

cpio test: add source file extension

4 years agoMerge pull request #1521 from odubaj/leak-fix-rar
Martin Matuška [Sun, 18 Apr 2021 22:36:06 +0000 (00:36 +0200)] 
Merge pull request #1521 from odubaj/leak-fix-rar

Fixed leak of rar before ending with error

4 years agoMerge pull request #1522 from bradking/no-u_char
Brad King [Tue, 6 Apr 2021 18:11:36 +0000 (14:11 -0400)] 
Merge pull request #1522 from bradking/no-u_char

Use uint8_t instead of u_char

4 years agocpio test: add source file extension 1524/head
Rolf Eike Beer [Tue, 6 Apr 2021 16:42:34 +0000 (18:42 +0200)] 
cpio test: add source file extension

Fixes CMake warnings regarding CMP0115.

4 years agoUse uint8_t instead of u_char 1522/head
Brad King [Mon, 5 Apr 2021 14:10:48 +0000 (10:10 -0400)] 
Use uint8_t instead of u_char

The latter is not a standard type.

4 years agoFixed leak of rar before ending with error 1521/head
Ondrej Dubaj [Wed, 31 Mar 2021 09:54:52 +0000 (11:54 +0200)] 
Fixed leak of rar before ending with error

4 years agoFixed double free when calling lzx_huffman_init frees pointer ds- 1520/head
Ondrej Dubaj [Wed, 31 Mar 2021 09:50:44 +0000 (11:50 +0200)] 
Fixed double free when calling lzx_huffman_init frees pointer ds-

4 years agoAdd __LA_UNUSED because clang warns for static inline functions that are
Christos Zoulas [Mon, 29 Mar 2021 21:55:43 +0000 (17:55 -0400)] 
Add __LA_UNUSED because clang warns for static inline functions that are
not used.

4 years agoNot all statfs's have f_iosize
Christos Zoulas [Mon, 29 Mar 2021 21:27:37 +0000 (17:27 -0400)] 
Not all statfs's have f_iosize

4 years agoMake setter functions inline
Christos Zoulas [Mon, 29 Mar 2021 21:14:01 +0000 (17:14 -0400)] 
Make setter functions inline

4 years agoFix FreeBSD which has both statfs and statvfs
Christos Zoulas [Mon, 29 Mar 2021 21:05:41 +0000 (17:05 -0400)] 
Fix FreeBSD which has both statfs and statvfs

4 years agoFix typo
Christos Zoulas [Mon, 29 Mar 2021 20:44:51 +0000 (16:44 -0400)] 
Fix typo

4 years agoPut the statvfs code in a separate block so that it can by shared by
Christos Zoulas [Mon, 29 Mar 2021 20:19:21 +0000 (16:19 -0400)] 
Put the statvfs code in a separate block so that it can by shared by
linux and NetBSD

4 years agoFix typo
Christos Zoulas [Mon, 29 Mar 2021 19:54:28 +0000 (15:54 -0400)] 
Fix typo

4 years agoExtract common transfer setting code for statfs and statvfs.
Christos Zoulas [Mon, 29 Mar 2021 19:32:34 +0000 (15:32 -0400)] 
Extract common transfer setting code for statfs and statvfs.
1. Makes detection of f_iosize constent.
2. Avoid infinite loops by detecting 0 sizes and converting to -1.
   This happens with FUSE. NetBSD PR/56083.

4 years agoMerge pull request #1514 from pimaster/fixDiskAccessForPrePaddedZips
Tim Kientzle [Sat, 27 Mar 2021 04:50:41 +0000 (21:50 -0700)] 
Merge pull request #1514 from pimaster/fixDiskAccessForPrePaddedZips

Rather than using the central directory offset as the file position directly, instead use the known location of the end-of-central-directory record and the size of the central directory to compute an offset.  This allows us to efficiently handle Zip archives that have other data prepended to the file.

4 years agoMerge pull request #1505 from arichardson/silent-stderr
Martin Matuška [Wed, 24 Mar 2021 14:33:56 +0000 (15:33 +0100)] 
Merge pull request #1505 from arichardson/silent-stderr

Silence stderr in test_read_append_filter_program

4 years agoFix declaration of variables, mostly to trigger a new check for what 1514/head
Russell Mullens [Wed, 24 Mar 2021 03:02:45 +0000 (14:02 +1100)] 
Fix declaration of variables, mostly to trigger a new check for what
seems like an unrelated issue.

4 years agoFix excessive disk read for padded zip.
Russell Mullens [Tue, 23 Mar 2021 11:22:07 +0000 (22:22 +1100)] 
Fix excessive disk read for padded zip.

Use the size of the Central Directory and the offset of the EOCD to
calculate the real position.

This trick doesn't work for Zip64 as easily as we are not scanning
backwards to find the PK\x06\x06 entry.
Interestingly, it is never checked so it could be trying to parse
bad files.

Updated based on review

4 years agoCalculate where the Central Directory is based on the size of the Central Directory...
Russell Mullens [Sat, 20 Mar 2021 07:59:12 +0000 (18:59 +1100)] 
Calculate where the Central Directory is based on the size of the Central Directory in EOCD and where the OECD was found.
This prevents large reads when a zip archive is preceded by other data.

4 years agoAdded support of deflate algorithm in symbolic link decompression for zip archives 1509/head
Masalskaya, Anna [Tue, 16 Mar 2021 18:06:01 +0000 (21:06 +0300)] 
Added support of deflate algorithm in symbolic link decompression for zip archives

4 years agoSilence stderr in test_read_append_filter_program 1505/head
Alex Richardson [Wed, 10 Mar 2021 10:31:28 +0000 (10:31 +0000)] 
Silence stderr in test_read_append_filter_program

When the FreeBSD testsuite runs the libarchive tests it checks that stderr
is empty. Since #1382 this is no longer the case. This change restores
the behaviour of silencing bunzip2 stderr but doesn't bring back the
output text check.

Partially reverts 2e7aa5d9

4 years agoMerge pull request #1481 from alexandre-janniaux/configure/prog-cpp/1
Martin Matuška [Mon, 8 Mar 2021 16:46:17 +0000 (17:46 +0100)] 
Merge pull request #1481 from alexandre-janniaux/configure/prog-cpp/1

Add AC_PROG_CPP to configure.ac

4 years agoMerge pull request #1480 from r0ptr/fix/7zip-extraction-32bit
Martin Matuška [Mon, 8 Mar 2021 16:45:25 +0000 (17:45 +0100)] 
Merge pull request #1480 from r0ptr/fix/7zip-extraction-32bit

Fix truncation of size values during 7zip archive extraction on 32bit architectures

4 years agoupdate "-h" output with new formats 1502/head
Tom Ivar Helbekkmo [Sat, 6 Mar 2021 21:45:41 +0000 (22:45 +0100)] 
update "-h" output with new formats

4 years agoupdate top level docs with binary cpio support
Tom Ivar Helbekkmo [Sat, 6 Mar 2021 13:44:02 +0000 (14:44 +0100)] 
update top level docs with binary cpio support

4 years agoupdate cpio documentation, add basic test of binary format
Tom Ivar Helbekkmo [Sat, 6 Mar 2021 12:04:37 +0000 (13:04 +0100)] 
update cpio documentation, add basic test of binary format

4 years agofix output format handling and symlink detection for PWB
Tom Ivar Helbekkmo [Sat, 6 Mar 2021 09:09:53 +0000 (10:09 +0100)] 
fix output format handling and symlink detection for PWB

4 years agoadd -7 option to bsdcpio for symmetry
Tom Ivar Helbekkmo [Sat, 6 Mar 2021 08:28:57 +0000 (09:28 +0100)] 
add -7 option to bsdcpio for symmetry

4 years agoadd a missing file entry to libarchive/CMakeLists.txt
Tom Ivar Helbekkmo [Fri, 5 Mar 2021 23:00:58 +0000 (00:00 +0100)] 
add a missing file entry to libarchive/CMakeLists.txt

4 years agobe PDP-endian host compatible when writing binary cpio headers
Tom Ivar Helbekkmo [Fri, 5 Mar 2021 22:35:09 +0000 (23:35 +0100)] 
be PDP-endian host compatible when writing binary cpio headers

4 years agoadd support for reading and writing PWB and V7 cpio archives
Tom Ivar Helbekkmo [Fri, 5 Mar 2021 22:18:21 +0000 (23:18 +0100)] 
add support for reading and writing PWB and V7 cpio archives

4 years agorearrange cpio output format selection
Tom Ivar Helbekkmo [Fri, 5 Mar 2021 20:25:06 +0000 (21:25 +0100)] 
rearrange cpio output format selection

4 years agoMerge pull request #1488 from oliness/add-null-check-1483
Martin Matuška [Tue, 16 Feb 2021 15:14:02 +0000 (16:14 +0100)] 
Merge pull request #1488 from oliness/add-null-check-1483

Add null check to string in archive_pathmatch

4 years agoMerge pull request #1487 from Olernov/fix_1486_build_fails_with_v120
Martin Matuška [Tue, 16 Feb 2021 15:12:30 +0000 (16:12 +0100)] 
Merge pull request #1487 from Olernov/fix_1486_build_fails_with_v120

Fix #1486: build fails on Windows with VS2013 toolset (v120)

4 years agoAdd null check to string in archive_pathmatch 1488/head
Oliver Ford [Wed, 27 Jan 2021 14:39:42 +0000 (14:39 +0000)] 
Add null check to string in archive_pathmatch

Adds a null check for the string parameter in archive_pathmatch
and archive_pathmatch_w to prevent a null pointer dereference.

Reported in github issue #1483.

4 years agoFix #1486: build fails on Windows with VS2013 toolset (v120) 1487/head
Oleg Smirnov [Fri, 22 Jan 2021 11:16:14 +0000 (14:16 +0300)] 
Fix #1486: build fails on Windows with VS2013 toolset (v120)

Build fails on compiling xxhash.c having a fuction with "inline" specifier.
"inline" is a c99 keyword and c99 is not yet (fully) supported with MSVC toolset v120:
"The inline keyword is available only in C++. The __inline and __forceinline
keywords are available in both C and C++. For compatibility with previous versions,
_inline is a synonym for __inline."
(Source: http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx)

This fix adds a patch that replaces "inline" with "__inline" in xxhash.c

4 years agoconfigure.ac: remove trailing characters 1481/head
Alexandre Janniaux [Mon, 11 Jan 2021 11:34:30 +0000 (12:34 +0100)] 
configure.ac: remove trailing characters

4 years agoconfigure.ac: add AC_PROG_CPP
Alexandre Janniaux [Mon, 11 Jan 2021 11:31:53 +0000 (12:31 +0100)] 
configure.ac: add AC_PROG_CPP

Otherwise, the preprocessor is not detected and it leads to failure with
empty $CPP variable being used on la_TYPE_UID_T, leading to a cascade of
detection errors and redefinition of some types.