Commit Graph

32 Commits

Author SHA1 Message Date
Martin Matuska
282f8bd696 Update vendor/libarchive to git c31379acc9009f5a3bafcfa33d7672a24b3f51f3
Vendor issues fixed (FreeBSD):
PR #778: ACL error handling
Issue #745: Symlink check prefix optimization is too aggressive
Issue #746: Hard links with data can evade sandboxing restrictions

This update fixes the vulnerability #3 and vulnerability #4 as reported in
the "non-cryptanalytic attacks against FreeBSD update components".
https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f

Vulnerability #2 has already been fixed in r304866
2016-09-14 20:32:34 +00:00
Martin Matuska
f4caca1f04 Update vendor/libarchive to git b4099917d6893ed77af24caff1156e044ebd4fa5
Vendor issues fixed:
PR #777: Multiple bugfixes for setup_acls()

This fixes a bug that caused ACLs not to be read properly for files and
directories inside subdirectories and as a result not being stored in tar
archives.
2016-09-05 15:20:55 +00:00
Martin Matuska
5c8a8484e3 Update vendor/libarchive to git 299c6bf136b9bc328b498505f24f87e732b73ff6
Vendor issues fixed:
Issue #731: Reject tar entries >= INT64_MAX
Issue #744 (part of Issue #743): Enforce sandbox with very long pathnames
Issue #748: Zip decompression failure with highly-compressed data
Issue #767: Buffer overflow printing a filename
Issue #770: Be more careful about extra_length
2016-08-26 22:02:37 +00:00
Martin Matuska
5b0ba62993 Update vendor/libarchive to git 6a0d970f70102fe50ee9f1e51a2e4c048985e616
Vendor issues fixed:

Issue #744: Very long pathnames evade symlink checks
Issue #748: libarchive can compress, but cannot decompress zip some files
PR #750: ustar: fix out of bounds read on empty string ("") filename
PR #755: fix use of acl_get_flagset_np() on FreeBSD
2016-08-13 21:20:06 +00:00
Martin Matuska
50fc3a26ef Update vendor/libarchive to git 084ef320b8fc62e3fd3acb762fe6175d48d7829c
Vendor issues fixed:
#686: Correctly grow buffer in archive_string_append_from_wcs_in_codepage()
FreeBSD PR #204157: Fix test on filesystems without birthtime support

PR:	204157
2016-06-29 07:00:15 +00:00
Martin Matuska
a34769f8e4 Update vendor/libarchive to git f502a81fcd7c331204bf53cc40cbf966ebb28a42 2016-06-21 15:18:22 +00:00
Martin Matuska
3786dd4a5c Add two missing test files in r302037 2016-06-21 00:00:05 +00:00
Martin Matuska
a53ba8b978 Update vendor/libarchive to git 139d0576b51a253732a5ab1f66805dffbf8b00af
tag v3.2.1

Fixed vendor issues:
Issue 521: Properly check reading from lzss decompression buffer
Issue 717: Fix integer overflow when computing location of volume
           descriptor
Issue 718: Security fix TALOS-CAN-152
Issue 719: Security fix TALOS-CAN-154

Security:	TALOS-CAN-152, TALOS-CAN-154
2016-06-20 23:55:33 +00:00
Martin Matuska
dc919cebaf Update vendor/libarchive to git d85976e7ff4a062e1de6e04dab7bb78e3344768f
Fixed vendor issues:
Issue 553: Fix broken decryption for ZIP files
Issue 657: Allow up to 8k for the test root directory name
Issue 682: Correctly write gnutar filenames of exactly 512 bytes
Issue 708: tar should fail if a named input file is missing
PR 715: Fix libarchive/archive_read_support_format_mtree.c:1388:11:
        error: array subscript is above array bounds
2016-06-18 08:25:31 +00:00
Martin Matuska
8eb6639196 Update vendor/libarchvie to git commit 860ec63
Integrates my pull request #709
2016-05-16 04:47:32 +00:00
Martin Matuska
cf8cc1c884 Update vendor/libarchive/dist to git commit f48d99b
Integrates my pull requests #701, #702 and #703
2016-05-12 16:03:55 +00:00
Martin Matuska
4e579f6c94 Update vendor/libarchive/dist to git commit 61c56e5 (post 3.2.0) 2016-05-11 10:19:44 +00:00
Martin Matuska
8c8f03ca5b Keep full libarchive distribution in vendor branch (prep for 3.2.0 update) 2016-05-11 10:10:11 +00:00
Martin Matuska
43341e7cf4 Trim libarchive/dist using FREEBSD-Xlist 2016-05-10 21:12:32 +00:00
Xin LI
c5f9310ca9 Apply upstream commit 6e06b1c8 (partial, by kientzle):
Fix a potential crash issue discovered by Alexander Cherepanov:
It seems bsdtar automatically handles stacked compression. This is a
nice feature but it could be problematic when it's completely
unlimited.  Most clearly it's illustrated with quines:

$ curl -sRO http://www.maximumcompression.com/selfgz.gz
$ (ulimit -v 10000000 && bsdtar -tvf selfgz.gz)
bsdtar: Error opening archive: Can't allocate data for gzip decompression

Without ulimit, bsdtar will eat all available memory. This could also
be a problem for other applications using libarchive.
2016-02-23 07:04:54 +00:00
Bryan Drewery
25d3ca0980 Apply upstream changeset bf4f6ec64e:
Fix issue 356: properly skip a sparse file entry in a tar file.
2015-07-28 17:48:34 +00:00
Bryan Drewery
34f1f5d95e Apply upstream changeset fa9e61:
Fix --one-file-system to include the directory encountered rather than
excluding it.
2015-07-28 17:20:35 +00:00
Xin LI
5361c268d4 Apply upstream changeset 24f5de6:
Set a proper error message if we hit end-of-file when
trying to read a cpio header.

Suggested by Issue #395, although the actual problem there
seems to have been the same as Issue #394.
2015-05-14 21:39:03 +00:00
Xin LI
95b982db7d Apply upstream changeset e6c9668:
Add a check to archive_read_filter_consume to reject any
attempts to move the file pointer by a negative amount.

Note:  Either this or commit 3865cf2 provides a fix for
Issue 394.
2015-05-14 21:34:20 +00:00
Xin LI
c792c52ca1 Apply upstream changeset 3865cf2:
Issue 394: Segfault when reading malformed old-style cpio archives
Root cause here was an implicit cast that resulted in
reading very large file sizes as negative numbers.
2015-05-14 21:33:33 +00:00
Martin Matuska
48ff71b692 Delete files accidentially left over in r248590 (libarchive 3.1.2) 2013-03-21 21:51:46 +00:00
Martin Matuska
6a316f322a Update libarchive's vendor dist to version 3.1.2 from release branch.
Git branch:	release
Git commit:	19f23e191f9d3e1dd2a518735046100419965804

Obtained from:	https://github.com/libarchive/libarchive.git
2013-03-21 18:59:02 +00:00
Martin Matuska
81418b36c0 Update libarchive's vendor dist to version 3.0.4 from release branch.
Git branch:	release
Git commit:	8076b31490c90aaf0edccecf760004c30bd95edc

Obtained from:	https://github.com/libarchive/libarchive.git
2012-07-27 08:24:12 +00:00
Martin Matuska
132160f774 Update libarchive's vendor dist to latest changes in release branch.
Git branch:	release
Git commit:     e2cc36190d7d733b3ac6744ec860d09776c9da02

Obtained from:  https://github.com/libarchive/libarchive.git
2012-02-25 00:16:00 +00:00
Martin Matuska
4d44c8d182 Update libarchive's vendor dist to latest changes in release branch.
Now all the gcc warnings I have reported upstream should be fixed.

Git branch:	release
Git commit:	01580b4298a946fb31e822a083bf49e9f37809ac

Obtained from:	https://github.com/libarchive/libarchive.git
2012-02-09 19:13:36 +00:00
Martin Matuska
bfd7accf01 Update libarchive's dist to latest changes in release branch
Git branch:	release
Git commit:	c477edc817b4382a1d0b2ff8c7b619af13bd349e

Obtained from:	https://github.com/libarchive/libarchive.git
2012-02-09 10:56:05 +00:00
Martin Matuska
17993d47e9 Update vendor libarchive dist to new "release" branch (post 3.0.3)
Git branch:	release
Git commit:	9af87742342aa4f37a22ec12c4cc1c82e00ffa2f

Obtained from:	https://github.com/libarchive/libarchive.git
2012-02-08 12:53:14 +00:00
Martin Matuska
d8b2811c01 Update to vendor revision 4183
Obtained from:	http://libarchive.googlecode.com/svn/release/2.8
2012-01-29 22:12:48 +00:00
Martin Matuska
1cd00a236b Update to vendor revision 4016
Obtained from:	http://libarchive.googlecode.com/svn/release/2.8
2011-12-27 10:21:29 +00:00
Martin Matuska
7691a6970b Update to vendor revision 3982
Obtained from:	http://libarchive.googlecode.com/svn/release/2.8
2011-12-26 22:25:58 +00:00
Martin Matuska
4b16b4e80e Set svn:eol-style property to native for all text files in vendor/libarchive 2011-12-21 09:08:41 +00:00
Martin Matuska
35fa5e2f58 Vendor import of libarchive (release/2.8, r3824)
Obtained from:	http://libarchive.googlecode.com/svn/release/2.8
2011-12-20 22:47:56 +00:00