]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
3 years agoRelease 3.5.0 v3.5.0
Martin Matuska [Tue, 1 Dec 2020 08:21:21 +0000 (09:21 +0100)] 
Release 3.5.0

3 years agoBuild release with Ubuntu 20.04
Martin Matuska [Tue, 1 Dec 2020 01:18:22 +0000 (02:18 +0100)] 
Build release with Ubuntu 20.04

3 years agoMerge pull request #1429 from ltx2018/master
Martin Matuška [Wed, 18 Nov 2020 17:19:32 +0000 (18:19 +0100)] 
Merge pull request #1429 from ltx2018/master

Avoid stack overflow in read_data_compressed

3 years agoMerge pull request #1413 from uyjulian/unknown_system_identifier
Martin Matuška [Wed, 18 Nov 2020 17:16:44 +0000 (18:16 +0100)] 
Merge pull request #1413 from uyjulian/unknown_system_identifier

Fill in Unknown for the system identifier

3 years agoFix typo in archive_write_open.3
Martin Matuska [Thu, 12 Nov 2020 10:10:43 +0000 (11:10 +0100)] 
Fix typo in archive_write_open.3

3 years agoUpdate archive_write_open.3 manpage
Martin Matuska [Thu, 12 Nov 2020 09:52:32 +0000 (10:52 +0100)] 
Update archive_write_open.3 manpage

3 years agoIntroduce archive_write_open2() with free callback
Martin Matuska [Fri, 6 Nov 2020 02:17:11 +0000 (03:17 +0100)] 
Introduce archive_write_open2() with free callback

The archive_write_open() function does not provide a free callback.
Freeing was done by the close callback. When the open callback fails,
the client filter is left in ARCHIVE_WRITE_FILTER_STATE_FATAL,
the close callback is not called and unfreed resources may be left behind.

Fixes #1456

3 years agoarchive_cryptor: use new Nettle AES interface on Nettle 3.0 and higher
Martin Matuska [Wed, 4 Nov 2020 06:49:36 +0000 (07:49 +0100)] 
archive_cryptor: use new Nettle AES interface on Nettle 3.0 and higher

3 years agoCI: fix homebrew errors in MacOS build
Martin Matuska [Mon, 2 Nov 2020 12:57:03 +0000 (13:57 +0100)] 
CI: fix homebrew errors in MacOS build

3 years agoCI: update Ubuntu image to 20.04
Martin Matuska [Mon, 2 Nov 2020 12:56:43 +0000 (13:56 +0100)] 
CI: update Ubuntu image to 20.04

3 years agoarchive_cryptor: silence Nettle 3.5+ warnings
Martin Matuska [Mon, 2 Nov 2020 12:35:03 +0000 (13:35 +0100)] 
archive_cryptor: silence Nettle 3.5+ warnings

3 years agoMerge pull request #1450 from XVilka/patch-1
Martin Matuška [Wed, 21 Oct 2020 22:21:40 +0000 (00:21 +0200)] 
Merge pull request #1450 from XVilka/patch-1

libarchive/archive_entry.c is not 3-clause UC Regents License

3 years agoarchive_entry.c is not 3-clause UC Regents License 1450/head
Anton Kochkov [Wed, 21 Oct 2020 07:17:22 +0000 (15:17 +0800)] 
archive_entry.c is not 3-clause UC Regents License

3 years agoMerge pull request #1409 from HardenedBSD/hbsd/extattr
Martin Matuška [Wed, 14 Oct 2020 18:37:09 +0000 (20:37 +0200)] 
Merge pull request #1409 from HardenedBSD/hbsd/extattr

HBSD: Teach libarchive about the system extended attribute namespace

3 years agoHBSD: Ignore UFS shenanigans 1409/head
Shawn Webb [Wed, 14 Oct 2020 16:51:49 +0000 (12:51 -0400)] 
HBSD: Ignore UFS shenanigans

UFS stores NFSv4 ACLs in the system extended attribute namespace. Per
libarchive maintainer, ignore those attributes.

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>

3 years agoHBSD: Teach libarchive about the system extended attribute namespace
Shawn Webb [Sun, 13 Sep 2020 19:03:28 +0000 (15:03 -0400)] 
HBSD: Teach libarchive about the system extended attribute namespace

In order to teach the packaging infrastructure how to support
HardenedBSD's method of exploit mitigation toggling, teach libarchive
how to handle the system filesystem extended attribute namespace.

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>

3 years agoHBSD: wrap function declaration in an ifdef to appease CI
Shawn Webb [Sun, 9 Aug 2020 12:15:06 +0000 (08:15 -0400)] 
HBSD: wrap function declaration in an ifdef to appease CI

The function I added only applies to FreeBSD. As such, if the function
declaration isn't ifdef'd out for other architectures, continuous
integration (CI) builds fail. Mitigate the failure by guarding the
function declaration with the proper preprocessor macro conditional.

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>

3 years agoHBSD: Teach libarchive about the system extended attribute namespace
Shawn Webb [Fri, 3 Jul 2020 14:33:18 +0000 (10:33 -0400)] 
HBSD: Teach libarchive about the system extended attribute namespace

In order to teach HardenedBSD's packaging infrastructure how to support
HardenedBSD's method of exploit mitigation toggling, teach libarchive
how to handle the system filesystem extended attribute namespace.

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>

3 years agoMerge pull request #1435 from mariXanna/issue#1434
Martin Matuška [Wed, 14 Oct 2020 08:03:18 +0000 (10:03 +0200)] 
Merge pull request #1435 from mariXanna/issue#1434

Add support for decompression of symbolic links in zipx archives

3 years agofix test failure 1435/head
Masalskaya, Anna [Tue, 29 Sep 2020 21:21:41 +0000 (00:21 +0300)] 
fix test failure

3 years agoMerge pull request #1442 from luis-henrix/directory_traversals-fix
Tim Kientzle [Sat, 26 Sep 2020 04:29:31 +0000 (21:29 -0700)] 
Merge pull request #1442 from luis-henrix/directory_traversals-fix

Fix test clean-up

3 years agoFix test clean-up 1442/head
Luis Henriques [Fri, 25 Sep 2020 09:09:44 +0000 (10:09 +0100)] 
Fix test clean-up

On test clean-up an 'rm -rf' will fail because 'lock' and 'lock/lock2'
directories have 0311 permissions.  Change these permissions on exit so
that the directories can be deleted on success.

3 years agotests: add new assertion for chmod()
Luis Henriques [Fri, 25 Sep 2020 08:57:13 +0000 (09:57 +0100)] 
tests: add new assertion for chmod()

3 years agomove test to another place
Masalskaya, Anna [Tue, 22 Sep 2020 09:43:25 +0000 (12:43 +0300)] 
move test to another place

3 years agounit test added
Masalskaya, Anna [Mon, 21 Sep 2020 21:07:15 +0000 (00:07 +0300)] 
unit test added

3 years agoMerge pull request #1437 from arichardson/check-config-h-included
Martin Matuška [Mon, 21 Sep 2020 05:15:26 +0000 (07:15 +0200)] 
Merge pull request #1437 from arichardson/check-config-h-included

Avoid mismatch between library and test crypto configuration

3 years agoAvoid mismatch between library and test crypto configuration 1437/head
Alex Richardson [Thu, 17 Sep 2020 17:14:58 +0000 (18:14 +0100)] 
Avoid mismatch between library and test crypto configuration

I was investigating libarchive test failures on FreeBSD and it turns out
we get a reproducible SIGBUS for test_archive_m5, etc. Debugging this shows
that libarchive and the tests disagree when it comes to the definition of
archive_md5_ctx: libarchive assumes it's the OpenSSL type whereas the test
use the libmd type. The latter is not necessarily aligned enough to store
a pointer (16 bytes for CHERI RISC-V), so we were crashing when storing
EVP_MD_CTX* to an 8-byte-aligned archive_md5_ctx.

To avoid problems like this in the future, add a new macro to the config
header and use that to ensure that all configuration check macros have
been defined in archive_digest_private.h.

3 years agoadjust formatting
Masalskaya, Anna [Wed, 16 Sep 2020 13:50:21 +0000 (16:50 +0300)] 
adjust formatting

3 years agoapplying remarks
Masalskaya, Anna [Mon, 14 Sep 2020 21:32:46 +0000 (00:32 +0300)] 
applying remarks

3 years agomore comments
Masalskaya, Anna [Mon, 14 Sep 2020 17:15:34 +0000 (20:15 +0300)] 
more comments

3 years agoMerge pull request #1433 from kevans91/warns
Martin Matuška [Thu, 10 Sep 2020 22:11:18 +0000 (00:11 +0200)] 
Merge pull request #1433 from kevans91/warns

tests: mark failed_filename and tests static to fix WARNS=6 build

3 years agoAdd support for decompression of symbolic links in zipx archives
Masalskaya, Anna [Wed, 9 Sep 2020 19:58:32 +0000 (22:58 +0300)] 
Add support for decompression of symbolic links in zipx archives

3 years agotests: mark failed_filename and tests static to fix WARNS=6 build 1433/head
Kyle Evans [Tue, 8 Sep 2020 18:58:32 +0000 (13:58 -0500)] 
tests: mark failed_filename and tests static to fix WARNS=6 build

Observed on FreeBSD with a higher WARNS level on bsdcat/tests, these two
variables should be private to test_main.c in order to appease the build.

3 years agoAdd a loop checker in read_data_compressed to avoid stack overflow. 1429/head
lutianxiong [Thu, 20 Aug 2020 11:09:03 +0000 (19:09 +0800)] 
Add a loop checker in read_data_compressed to avoid stack overflow.

Signed-off-by: lutianxiong <lutianxiong@huawei.com>
3 years agoMerge pull request #1422 from crrodriguez/o_tmpfile
Martin Matuška [Sun, 9 Aug 2020 00:43:48 +0000 (02:43 +0200)] 
Merge pull request #1422 from crrodriguez/o_tmpfile

use O_TMPFILE if it works/is supported in __archive_mktemp

3 years agoCI: Run tests on FreeBSD 12.1 and 11.4 via Cirrus CI
Martin Matuska [Wed, 29 Jul 2020 08:10:50 +0000 (10:10 +0200)] 
CI: Run tests on FreeBSD 12.1 and 11.4 via Cirrus CI

3 years agouse O_TMPFILE if it works/is supported in __archive_mktemp 1422/head
Cristian Rodríguez [Mon, 27 Jul 2020 14:11:33 +0000 (10:11 -0400)] 
use O_TMPFILE if it works/is supported in __archive_mktemp

This makes the function safer on linux since the file is warrantied to never
be visible on the filesystem, cannot be linked anywhere unless O_EXCL is
not specified and it is lost forever on any kind of program termination.

3 years agoMerge pull request #1420 from Gei0r/master
Tim Kientzle [Sun, 26 Jul 2020 21:01:43 +0000 (14:01 -0700)] 
Merge pull request #1420 from Gei0r/master

Enable compression level up to 9 for xz, xar, 7zip

3 years agoEnable compression level up to 9 for xz, xar, 7zip 1420/head
Adrian Ebeling [Sun, 26 Jul 2020 08:51:46 +0000 (10:51 +0200)] 
Enable compression level up to 9 for xz, xar, 7zip

3 years agoMerge pull request #1412 from uyjulian/use_standard_header
Martin Matuška [Sat, 25 Jul 2020 09:35:40 +0000 (11:35 +0200)] 
Merge pull request #1412 from uyjulian/use_standard_header

memory.h is a non-standard header, so use stdlib.h instead

3 years agoMerge pull request #1411 from uyjulian/use_standard_format_specifiers
Martin Matuška [Sat, 25 Jul 2020 09:35:15 +0000 (11:35 +0200)] 
Merge pull request #1411 from uyjulian/use_standard_format_specifiers

Use standard format specifiers

3 years agoMerge pull request #1408 from Azq2/patch-1
Martin Matuška [Fri, 17 Jul 2020 00:55:19 +0000 (02:55 +0200)] 
Merge pull request #1408 from Azq2/patch-1

Fix uninitialized size in rar5_read_data

3 years agoFill in Unknown for the system identifier if there is no utsname and not Windows 1413/head
uyjulian [Wed, 8 Jul 2020 05:09:32 +0000 (00:09 -0500)] 
Fill in Unknown for the system identifier if there is no utsname and not Windows

3 years agoUse standard format specifiers 1411/head
uyjulian [Wed, 8 Jul 2020 04:54:12 +0000 (23:54 -0500)] 
Use standard format specifiers

3 years agomemory.h is a non-standard header, so use stdlib.h instead 1412/head
uyjulian [Wed, 8 Jul 2020 04:51:10 +0000 (23:51 -0500)] 
memory.h is a non-standard header, so use stdlib.h instead

3 years agoMerge pull request #1405 from yuyichao/read_format
Martin Matuška [Tue, 7 Jul 2020 22:11:58 +0000 (00:11 +0200)] 
Merge pull request #1405 from yuyichao/read_format

More format supports in archive_read_support_format_by_code

3 years agoInitialize to zero only size + check for null 1408/head
Kirill Zhumarin [Thu, 2 Jul 2020 12:25:35 +0000 (15:25 +0300)] 
Initialize to zero only size + check for null

3 years agoFix uninitialized offset & size in rar5_read_data
Kirill Zhumarin [Thu, 2 Jul 2020 11:37:15 +0000 (14:37 +0300)] 
Fix uninitialized offset & size in rar5_read_data

3 years agoMerge pull request #1404 from yuyichao/set_format_error
Martin Matuška [Wed, 1 Jul 2020 16:30:20 +0000 (18:30 +0200)] 
Merge pull request #1404 from yuyichao/set_format_error

Set an error message for setting invalid format by code on readers

3 years agoMore format supports in archive_read_support_format_by_code and archive_read_set_format 1405/head
Yichao Yu [Sun, 28 Jun 2020 16:34:24 +0000 (12:34 -0400)] 
More format supports in archive_read_support_format_by_code and archive_read_set_format

3 years agoSet an error message for setting invalid format by code on readers 1404/head
Yichao Yu [Sun, 28 Jun 2020 15:29:45 +0000 (11:29 -0400)] 
Set an error message for setting invalid format by code on readers

The error message is consistent with `archive_read_set_format`.
The absense of an error message here also means that the error message
in `archive_read_set_format` is actually never used.

Writer functions does not seem to have the same issue.

3 years agoMerge pull request #1402 from robUx4/winnt-redefine
Martin Matuška [Fri, 19 Jun 2020 14:15:34 +0000 (16:15 +0200)] 
Merge pull request #1402 from robUx4/winnt-redefine

don't force windows versions if they are set in the environment

3 years agoMerge pull request #1395 from pieper/1394-fix-enum-cases
Martin Matuška [Fri, 19 Jun 2020 14:14:11 +0000 (16:14 +0200)] 
Merge pull request #1395 from pieper/1394-fix-enum-cases

Explicitly handle all enum cases in switch

3 years agodon't force windows versions if they are set in the environment 1402/head
Steve Lhomme [Thu, 2 Apr 2020 13:33:40 +0000 (15:33 +0200)] 
don't force windows versions if they are set in the environment

3 years agoCOMP: explicitly handle all enum cases in switch 1395/head
Steve Pieper [Sun, 7 Jun 2020 14:25:31 +0000 (10:25 -0400)] 
COMP: explicitly handle all enum cases in switch

In VisualStudio 2019 error C4061 happens if you don't
have a case statement for every value of an enum.
The default condition is not enough.

This fix avoids error like this:

25>C:\sq5\LibArchive\libarchive\archive_read_support_format_warc.c(344,2): error C4061: enumerator 'WT_NONE' in switch of enum 'warc_type_t' is not explicitly handled by a case label [C:\sq5\LibArchive-build\libarchive\archive.vcxproj]

3 years agoIntroduce archive_read_support_filter_by_code()
Martin Matuska [Tue, 9 Jun 2020 05:09:09 +0000 (07:09 +0200)] 
Introduce archive_read_support_filter_by_code()

Fixes #1258

3 years agoSkip hardlinks pointing to itself and issue a warning
Martin Matuska [Tue, 9 Jun 2020 05:06:32 +0000 (07:06 +0200)] 
Skip hardlinks pointing to itself and issue a warning

Fixes #1381

3 years agoMerge pull request #1347 from evelikov/mtree
Martin Matuška [Tue, 9 Jun 2020 04:22:00 +0000 (06:22 +0200)] 
Merge pull request #1347 from evelikov/mtree

Introduce MTREE digest reader support

3 years agoMerge pull request #1392 from marcespie/errmsg
Martin Matuška [Thu, 4 Jun 2020 22:34:07 +0000 (00:34 +0200)] 
Merge pull request #1392 from marcespie/errmsg

remove unneeded strlen

3 years agoMerge pull request #1391 from marcespie/isint_w
Martin Matuška [Thu, 4 Jun 2020 22:33:43 +0000 (00:33 +0200)] 
Merge pull request #1391 from marcespie/isint_w

isint_w should use long literals

3 years agoMerge pull request #1389 from yuyichao/copy_utf8
Martin Matuška [Thu, 4 Jun 2020 22:33:24 +0000 (00:33 +0200)] 
Merge pull request #1389 from yuyichao/copy_utf8

Complete support for UTF8 encoding conversion

3 years agoremove unneeded strlen 1392/head
Marc Espie [Thu, 4 Jun 2020 15:02:31 +0000 (17:02 +0200)] 
remove unneeded strlen

this is obviously s, no need to recompute it each time

3 years agoisint_w should use long literals 1391/head
Marc Espie [Thu, 4 Jun 2020 14:59:17 +0000 (16:59 +0200)] 
isint_w should use long literals

cut&paste from isint apparently forgot that

3 years agoComplete support for UTF8 encoding conversion 1389/head
Yichao Yu [Sun, 31 May 2020 18:30:10 +0000 (14:30 -0400)] 
Complete support for UTF8 encoding conversion

All the conversions already always go through the MBS form so
simply always convert to MBS before trying to convert to any other encoding
in the `archive_mstring_get_*` functions.

* Do this by calling `archive_mstring_get_mbs` to avoid duplicating code
* Add `struct archive*` parameter to `archive_mstring_get_mbs_l`
* Add test for set/get/update utf8 functions on entry
* Add test for encoding conversion.

Fix #931

3 years agoMerge pull request #1388 from michaelforney/cpio-rdev
Martin Matuška [Sat, 30 May 2020 12:47:40 +0000 (14:47 +0200)] 
Merge pull request #1388 from michaelforney/cpio-rdev

Fix rdev field in cpio format for device nodes

3 years agoMerge pull request #1387 from glebfm/tar2cpio-hardlink-filetype
Martin Matuška [Sat, 30 May 2020 12:46:04 +0000 (14:46 +0200)] 
Merge pull request #1387 from glebfm/tar2cpio-hardlink-filetype

Fix writing of cpio archives containing hardlinks without file type

3 years agoMerge pull request #1383 from goshhhy/master
Martin Matuška [Sat, 30 May 2020 12:44:15 +0000 (14:44 +0200)] 
Merge pull request #1383 from goshhhy/master

configure.ac: check if flags are needed for c99

3 years agoMerge pull request #1382 from mgorny/wrong-prog
Martin Matuška [Sat, 30 May 2020 12:43:31 +0000 (14:43 +0200)] 
Merge pull request #1382 from mgorny/wrong-prog

test_read_append_filter_wrong_program: Do not check stderr

3 years agoFix rdev field in cpio format for device nodes 1388/head
Michael Forney [Fri, 29 May 2020 21:54:05 +0000 (14:54 -0700)] 
Fix rdev field in cpio format for device nodes

Currently, the rdev field is set from archive_entry_dev, which is
the device number of the filesystem containing the device node, not
the device itself. It should instead use archive_entry_rdev.

Here's an example demonstrating the problem:

$ ls -l /dev/null
crw-rw-rw-    1 root     root        1,    3 May 26 02:03 /dev/null
$ bsdtar --format=cpio -cf null.cpio /dev/null
bsdtar: Removing leading '/' from member names
$ bsdtar -tvf null.cpio
crw-rw-rw-  1 0      0         0,6 May 26 02:03 dev/null

3 years agoFix writing of cpio archives containing hardlinks without file type 1387/head
Gleb Fotengauer-Malinovskiy [Fri, 29 May 2020 10:12:29 +0000 (13:12 +0300)] 
Fix writing of cpio archives containing hardlinks without file type

Fixes: https://github.com/libarchive/libarchive/issues/1386
3 years agoconfigure.ac: check if flags are needed for c99 1383/head
goshhhy [Sun, 24 May 2020 23:17:44 +0000 (14:17 -0900)] 
configure.ac: check if flags are needed for c99

some older and more obscure compilers (e.g. mipspro on irix) default to the strictest standard they know instead of the most permissive. since libarchive uses c99 features in several places throughout, but does not pass appropriate cflags to parse c99 code, it will fail to compile from the configure script on these systems. this change will have autoconf check if any flags are needed for the c compiler to accept c99 code, and add them to cflags.

3 years agotest_read_append_filter_wrong_program: Do not check stderr 1382/head
Michał Górny [Sat, 23 May 2020 19:54:53 +0000 (21:54 +0200)] 
test_read_append_filter_wrong_program: Do not check stderr

Do not assert on specific output of bunzip2.  This wrongly assumes
that all systems will be using the reference implementation of bzip2,
and it fails when an implementation with another output is used
(e.g. lbzip2).

Fixes #1380

3 years agotest_write_disk_secure: unify ifdefs for lchmod() test
Martin Matuska [Fri, 22 May 2020 10:36:31 +0000 (12:36 +0200)] 
test_write_disk_secure: unify ifdefs for lchmod() test

3 years agotest_write_disk_secure: properly check if lchmod() is supported
Martin Matuska [Fri, 22 May 2020 09:43:43 +0000 (11:43 +0200)] 
test_write_disk_secure: properly check if lchmod() is supported

Fixes #1379

3 years agoRelease Dockerfile: add missing dependency on zlib1g-dev
Martin Matuska [Wed, 20 May 2020 01:16:09 +0000 (03:16 +0200)] 
Release Dockerfile: add missing dependency on zlib1g-dev

3 years agoLibarchive 3.4.4dev
Martin Matuska [Wed, 20 May 2020 00:18:08 +0000 (02:18 +0200)] 
Libarchive 3.4.4dev

3 years agoLibarchive 3.4.3 v3.4.3
Martin Matuska [Tue, 19 May 2020 23:48:25 +0000 (01:48 +0200)] 
Libarchive 3.4.3

3 years agoMerge pull request #1378 from stefan-baranoff/issue-1377-passphrase-memory-leak
Martin Matuška [Tue, 19 May 2020 08:20:51 +0000 (10:20 +0200)] 
Merge pull request #1378 from stefan-baranoff/issue-1377-passphrase-memory-leak

Fix memory leak from passphrase callback

3 years agoFix memory leak from passphrase callback 1378/head
Stefan Baranoff [Tue, 19 May 2020 00:57:14 +0000 (00:57 +0000)] 
Fix memory leak from passphrase callback

There is a bug in the linked list implementation for passphrases. The insert to
head function does not account for the tail==head case and causes a leak. The
first entry into the list is lost when the second entry is added. The second
and beyond entries are are released properly, but the first is lost entirely.

3 years agoMerge pull request #1376 from AdamKorcz/master
Martin Matuška [Fri, 8 May 2020 21:19:51 +0000 (23:19 +0200)] 
Merge pull request #1376 from AdamKorcz/master

Moved oss-fuzz files from oss-fuzz to Libarchives repository

3 years agoMoved oss-fuzz files from oss-fuzz to Libarchives repository 1376/head
Adam Korczynski [Wed, 6 May 2020 11:35:59 +0000 (12:35 +0100)] 
Moved oss-fuzz files from oss-fuzz to Libarchives repository

4 years agoAdd test for #1357 (detection of pzstd compressed files)
Martin Matuska [Thu, 30 Apr 2020 17:28:04 +0000 (19:28 +0200)] 
Add test for #1357 (detection of pzstd compressed files)

4 years agoMerge pull request #1357 from mako2580/master
Martin Matuška [Thu, 30 Apr 2020 17:22:26 +0000 (19:22 +0200)] 
Merge pull request #1357 from mako2580/master

zstd: Add support for files created with pzstd

4 years agoMerge pull request #1360 from EricAustinYu/master
Martin Matuška [Thu, 30 Apr 2020 08:03:10 +0000 (10:03 +0200)] 
Merge pull request #1360 from EricAustinYu/master

Remove unreachable code in RAR reader

4 years agoFix retrieving incorrect member from struct statfs
Martin Matuska [Thu, 30 Apr 2020 01:46:05 +0000 (03:46 +0200)] 
Fix retrieving incorrect member from struct statfs

Fixes #1355

4 years agotar reader: update handling of RHT.security.selinux xattr
Martin Matuska [Thu, 16 Apr 2020 02:10:30 +0000 (04:10 +0200)] 
tar reader: update handling of RHT.security.selinux xattr

Add test for PR #1348
Rename test_read_pax_schily_xattr to test_read_pax_xattr_schily

4 years agoMerge pull request #1372 from evelikov/single-child
Martin Matuška [Thu, 30 Apr 2020 01:39:48 +0000 (03:39 +0200)] 
Merge pull request #1372 from evelikov/single-child

Cleanup child handling

4 years agoMerge pull request #1371 from evelikov/digest-ifdef
Martin Matuška [Thu, 30 Apr 2020 01:35:03 +0000 (03:35 +0200)] 
Merge pull request #1371 from evelikov/digest-ifdef

Remove #ifdef chain in __archive_digest init

4 years agoMerge pull request #1365 from AdamKorcz/master
Martin Matuška [Thu, 30 Apr 2020 01:31:42 +0000 (03:31 +0200)] 
Merge pull request #1365 from AdamKorcz/master

Added seed corpus

4 years agofix typo in README.md (#1373)
Terrell Russell [Sun, 26 Apr 2020 00:50:23 +0000 (20:50 -0400)] 
fix typo in README.md (#1373)

4 years agoRemove CloseHandle() from __archive_write_program_free 1372/head
Emil Velikov [Sat, 25 Apr 2020 14:46:41 +0000 (15:46 +0100)] 
Remove CloseHandle() from __archive_write_program_free

The call to CloseHandle() is asymmetric and wrong.

The handle is created during the __achive_create_child() call in
__archive_write_program_open() aka the filter open callback.

While CloseHandle() is already called in the filter close callback aka
__archive_write_program_close().

Remove the incorrect call to CloseHandle() from the bidder free callback

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
4 years agoCall OpenProcess() from within __archive_create_child()
Emil Velikov [Sat, 25 Apr 2020 14:42:45 +0000 (15:42 +0100)] 
Call OpenProcess() from within __archive_create_child()

Move the Windows specific to the Windows version of the helper, making
the existing code shorter and simpler.

This means that the child "handle" type will vary across the two
platforms - something that we've already been doing with waitpid.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
4 years agoChange __archive_create_child() signature
Emil Velikov [Sat, 25 Apr 2020 12:56:12 +0000 (13:56 +0100)] 
Change __archive_create_child() signature

Change the function to return an int - ARCHIVE_OK or ARCHIVE_FAILED,
taking the child as an output argument.

This will allow us to simplify the existing code and have move platform
specifics in the platform files - posix and windows

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
4 years agoMoved the corpus file to the contrib dir 1365/head
Adam Korczynski [Sat, 25 Apr 2020 16:19:29 +0000 (17:19 +0100)] 
Moved the corpus file to the contrib dir

4 years agoRemove #ifdef chain in __archive_digest init 1371/head
Emil Velikov [Sat, 14 Mar 2020 13:31:31 +0000 (13:31 +0000)] 
Remove #ifdef chain in __archive_digest init

Follow the approach set by the crypto and use the exact same name for
the respective functions. This is perfectly fine, since only one
provider can be used (built) at given time.

As a result, we can kill off the excessively long ifdef chain, making
the more more manageable and shorter.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
4 years agoMerge pull request #1363 from aseprite/dont-test-lzma-if-not-needed
Martin Matuška [Fri, 24 Apr 2020 01:47:42 +0000 (03:47 +0200)] 
Merge pull request #1363 from aseprite/dont-test-lzma-if-not-needed

Don't even try HAVE_LZMA_STREAM_ENCODER_MT if ENABLE_LZMA is disabled

4 years agoMerge pull request #1364 from aseprite/macos-no-deprecated
Martin Matuška [Fri, 24 Apr 2020 01:47:05 +0000 (03:47 +0200)] 
Merge pull request #1364 from aseprite/macos-no-deprecated

Disable error using deprecated functions on macOS 10.15 to calculate MD5

4 years agoMerge pull request #1362 from aseprite/libarchive.pc-in-binary-dir
Martin Matuška [Fri, 24 Apr 2020 01:45:39 +0000 (03:45 +0200)] 
Merge pull request #1362 from aseprite/libarchive.pc-in-binary-dir

Create libarchive.pc inside the cmake build dir

4 years agoMerge pull request #1361 from aseprite/fix-msvc-warning-flags
Martin Matuška [Fri, 24 Apr 2020 01:44:45 +0000 (03:44 +0200)] 
Merge pull request #1361 from aseprite/fix-msvc-warning-flags

Use /w1nnnn instead of /wennnn to enable warnings on MSVC Debug mode

4 years agoMerge pull request #1367 from zoulasc/master
Martin Matuška [Fri, 24 Apr 2020 01:43:16 +0000 (03:43 +0200)] 
Merge pull request #1367 from zoulasc/master

Fix issues in acl tests