Commit Graph

88 Commits

Author SHA1 Message Date
Martin Matuska
fbb1b16ad8 Update vendor/libarchive/dist to git 31c0a517c91f44eeee717a04db8b075cadda83d8
Relevant vendor changes:
  PR #1085: Fix a null pointer dereference bug in zip writer
  PR #1110: ZIP reader added support for XZ, LZMA, PPMD8 and BZIP2
            decopmpression
  PR #1116: Add support for 64-bit ar format
  PR #1120: Fix a 7zip crash [1] and a ISO9660 infinite loop [2]
  PR #1125: RAR5 reader - fix an invalid read and a memory leak
  PR #1131: POSIX reader - do not fail when tree_current_lstat() fails
            due to ENOENT [3]
  PR #1134: Delete unnecessary null pointer checks before calls of free()
  OSS-Fuzz 10843: Force intermediate to uint64_t to make UBSAN happy.
  OSS-Fuzz 11011: Avoid buffer overflow in rar5 reader

PR:		233006 [3]
Security:	CVE-2019-1000019 [1], CVE-2019-1000020 [2]
2019-02-12 22:29:41 +00:00
Martin Matuska
c6234fa1ee Update vendor/libarchive/dist to git cef97307a3f681fcbb2cc02db6df3619a3f8b69c
Relevant vendor changes:
  PR #1105: Fix various crash, memory corruption and infinite loop conditions
2018-12-13 11:15:14 +00:00
Martin Matuska
8f080f5de1 Update vendor/libarchive/dist to git 7d6da880ae3e379d463137510bb4e8c65b6bfb36
Relevant vendor changes:
  PR #1107: RAR5 reader: removed an unused function: bf_is_last_block
2018-12-13 11:04:59 +00:00
Martin Matuska
375ea06b32 Update vendor/libarchive/dist to git 851adb9602f1acdb090067bb4f297cd609dfa28c
Relevant vendor changes:
  PR #1102: RAR5 reader - fix big-endian problems
2018-12-09 22:42:22 +00:00
Martin Matuska
09d835e31d Update vendor/libarchive/dist to git 2c5e9bdbb62eeb56a37776f796c15ed16727193e
Relevant vendor changes:
  Issue #1096: Support extracting ACLs with in-entry comments (GNU tar)
  PR #1023: Support extracting extattrs as non-root on non-user-writable files
2018-11-26 11:01:51 +00:00
Martin Matuska
fd2a102f7b Update vendor/libarchive/dist to git 0e416f2fe757ad6841dbb3386a17d88b5c9f5533
Relevant vendor changes:
  PR #1080: Spelling fixes
  PR #1084: RAR5 reader bugfixes
  PR #1091: fix use-after-free in delayed newc link processing
  PR #1092: Fix a few obvious resource leaks and strcpy() misuses
2018-11-24 01:15:08 +00:00
Martin Matuska
a26007e8d3 Update vendor/libarchive/dist to git d661131393def793a9919d1e3fd54c9992888bd6
Relevant vendor changes:
  RAR5 reader: more maybe-uninitialized size_t fixes for riscv64
               FreeBSD build
2018-10-26 21:15:36 +00:00
Martin Matuska
991bb1fcab Update vendor/libarchive/dist to git 1266f6d281a6d7c6604a8c14cdad14dc83ea4b88
Relevant vendor changes:
  RAR5 reader: FreeBSD build platform fixes for powerpc(64), mips(64),
               sparc64 and riscv64
2018-10-25 23:10:06 +00:00
Martin Matuska
c6c4ca7a3a Update vendor/libarchive/dist to git b1dc8bb16e192d71442a94fdcd0096ba9e2946b4
Relevant ventor changes:
  RAR5 reader: comment out unused constant
2018-10-23 12:54:17 +00:00
Martin Matuska
6e3f395bc8 Update vendor/libarchive/dist to git 58ae9e02093aa47dc6eb27a66d4e95b05e9e672e
Relevant ventor changes:
  RAR5 reader: declare some constants static
2018-10-23 11:34:15 +00:00
Martin Matuska
30bb24b1cb Update vendor/libarchive/dist to git d5f35a90a4cb1eeb918213bff9d78e8b0471dc0a
Relevant vendor changes:
  PR #1013: Add missing h_base offset when performing absolute seeks in
            xar decompression
  PR #1061: Add support for extraction of RAR v5 archives
  PR #1066: Fix out of bounds read on empty string filename for gnutar, pax
            and v7tar
  PR #1067: Fix temporary file path buffer overflow in tests
  IS #1068: Correctly process and verify integer arguments passed to
            bsdcpio and bsdtar
  PR #1070: Don't default XAR entry atime/mtime to the current time
2018-10-23 10:58:07 +00:00
Martin Matuska
21d41b7887 Update vendor/libarchive/dist to git 0cda60af13e709e670af90553b2271bf194e7ccd
Relevant vendor changes:
  PR #1019: Add allocation check for the zip_entry struct
  Oss-Fuzz #10192: Handle whitespace-only ACL fields correctly
2018-09-19 10:26:45 +00:00
Martin Matuska
7ab7abddce Update vendor/libarchive/dist to git 5fe69dd018745a88eecf1f7db40daf12d26f7ed0
libarchive 3.3.3
2018-09-07 00:11:43 +00:00
Martin Matuska
01ab5f2b03 Update vendor/libarchive/dist to git e6da40adb8ce566d906791b2a4083348bdd1e532
Important vendor changes:
  PR #1042: validate iso9660 directory record length

Security:	CVE-2017-14501
2018-08-14 11:37:03 +00:00
Martin Matuska
0b7a6fc00b Update vendor/libarchive/dist to git 2c8c83b9731ff822fad6cc8c670ea5519c366a14
Important vendor changes:
  PR #993: Chdir to -C directory for metalog processing
  OSS-Fuzz #4969: Check size of the extended time field in zip archives
  PR #973: Record informational compression level in gzip header
2018-07-28 23:47:22 +00:00
Conrad Meyer
032a8914c1 libarchive: Cherry-pick upstream 2c8c83b9
Relevant vendor changes:
  Fix issue #948: out-of-bounds read in lha_read_data_none()

admbugs:	877
Security:	CVE-2017-14503
2018-07-28 00:55:57 +00:00
Martin Matuska
f7158da37f vendor/libarchive/dist: Add new files missing in r328323 2018-01-24 11:03:18 +00:00
Martin Matuska
a2160dbed3 Update libarchive to git 2d9156bb3ad92c43c1e81546f4a2c21549ba248f
Relevant vendor changes:
  PR #893: delete dead ppmd7 alloc callbacks
  PR #904: Fix archive freeing bug in bsdcat
  PR #961: Fix ZIP format names
  PR #962: Don't modify attributes for existing directories
           when ARCHIVE_EXTRACT_NO_OVERWRITE is set
  PR #964: Fix -Werror=implicit-fallthrough= for GCC 7
  PR #970: zip: Allow backslash as path separator
2018-01-24 11:01:12 +00:00
Martin Matuska
188b0da4f2 Update libarchive to git 47636913968b0b0dbde770f4234930e84de0e37c
Relevant vendor changes:
  Tar manpage fix
2017-10-01 00:26:06 +00:00
Martin Matuska
533ab3c53e Update vendor/libarchive to git 92366744a52f3fa83c3899e375e415a5080a05f2
Relevant vendor changes:
  PR #905: Support for Zstandard read and write filters
  PR #922: Avoid overflow when reading corrupt cpio archive
  Issue #935: heap-based buffer overflow in xml_data (CVE-2017-14166)
  OSS-Fuzz 2936: Place a limit on the mtree line length
  OSS-Fuzz 2394: Ensure that the ZIP AES extension header is large enough
  OSS-Fuzz 573: Read off-by-one error in RAR archives (CVE-2017-14502)

Security: CVE-2017-14166, CVE-2017-14502
2017-09-30 23:33:19 +00:00
Martin Matuska
b85c4c3da0 Update vendor/libarchive to git de20494ba2a4fcff8b56010faa75467ad8d5a40b
Relevant vendor changes:
  PR #926: ensure ar strtab is null terminated
2017-07-28 23:51:08 +00:00
Martin Matuska
a732671a5f Update vendor/libarchive to git 347ac2b6adfd4bca7418d30d7278d5343fc6e25e
libarchive 3.3.3dev
2017-07-28 23:48:51 +00:00
Martin Matuska
f8c95ef815 Update vendor/libarchive to git 98a695399e8e7420635a5448aecde8b0a82fb83a
Release 3.3.2

Vendor changes:
  PR #901: don't depend on stdin in a testcase
2017-07-13 00:16:51 +00:00
Martin Matuska
218287e0e4 Update vendor/libarchive to git f2230fcaed3159d10caed63d9a20caa9fdc94c62
Vendor fixes:
  #909: Fix use after free in cpio test_option_lz4

Reported by:	Coverity (ngie@)
2017-05-11 11:13:02 +00:00
Martin Matuska
87a07d9d6c Update vendor/libarchive to git c253f0aae9ac86a617b4f814137e07757df72391
Vendor changes (FreeBSD-related):
  PR 897: test for ZIP archives with invalid EOCD headers
  PR 901: fix invalid renaming of sparse files
  OSS-Fuzz issue 497: remove fallback tree in LZX decoder
  OSS-Fuzz issue 527: rewrite expressions in lz4 filter
  OSS-Fuzz issue 577: fix integer overflow in cpio reader
  OSS-Fuzz issue 862: fix numerc parsing in mtree reader
  OSS-Fuzz issue 1097: fix undefined shift in rar reader
  cpio: various optimizations and memory leak fixes
2017-05-03 23:55:12 +00:00
Martin Matuska
659b8836cb Update vendor/libarchive to git 500a62194a1faafaffd286f6da50633e86587f3c
Vendor changes (FreeBSD-related):
  Plug memory leaks in xattr tests.
2017-04-03 12:22:55 +00:00
Martin Matuska
838c5c42c2 Update vendor/libarchive to git e9eef34719c4bc8cfa2e3cc568eae7afe763a2c3
Vendor changes (FreeBSD-related):
  Report which extended attributes could not be restored
  Update archive_read_disk.3 and archive_write_disk.3 manual pages
2017-04-03 11:46:32 +00:00
Martin Matuska
cae1856f62 Update vendor/libarchive to git a04b5adede4022dd593af76cb2fc2e96cb34df91
Vendor changes (FreeBSD-related):
- add missing file from previous merge
- encapsulate platform ACL code in an #ifdef
2017-03-28 10:34:44 +00:00
Martin Matuska
782ceec6db Update vendor/libarchive to git 13b0ed2ba504389c363cd302041fe10afa1837ad
Vendor changes (FreeBSD-related):
- constify variables in several places
- unify platform ACL code in a single source file
- fix unused variable if compiling on FreeBSD without NFSv4 ACL support
2017-03-28 09:58:54 +00:00
Martin Matuska
854870e4b3 Update vendor/libarchive to git e92cb619661b5b52da63867305442e22892a503d
Vendor changes (FreeBSD-related):
- store extended attributes with extattr_set_link() if no fd is provided
- add extended attribute tests to libarchive and bsdtar
- support the UF_HIDDEN file flag
2017-03-23 23:44:31 +00:00
Martin Matuska
22d7a1bf74 Update vendor/libarchive to git 3e37a9e051bb7674115ca1e262551a070a92283a
Vendor changes:
  Fix type in archive_read_open(3)
  Always use extern keyword for shared constants in archive_acl_maps.h
2017-03-20 11:55:03 +00:00
Martin Matuska
4a7f683434 Update vendor/libarchive to git 5881c9021a85668bd945593f5ba43a0d22c53d71
Vendor changes (FreeBSD-related):
  Break ACL read/write code into platform-specific source files

Vendor bugfixes (FreeBSD-related):
  PR 867 (bsdcpio): show numeric uid/gid when names are not found
  PR 870 (seekable zip): accept files with valid ZIP64 EOCD headers
  PR 880 (pax): Fix handling of "size" pax header keyword
  PR 887 (crypto): Discard 3072 bytes instead of 1024 of first keystream
  OSS-Fuzz issue 806 (mtree): rework mtree_atol10 integer parser
  Unbreak static dependency on libbz2
2017-03-20 11:12:31 +00:00
Martin Matuska
086ca70a28 Update vendor/libarchive to git f4b9b3fe89b4acfef5e3a2283d3bc542315ddb57
Fixes for test_options_fflags tar test
2017-03-02 22:46:03 +00:00
Martin Matuska
46ab065716 Update vendor/libarchive to git a15c7f7b496ba4cefbcaf6f8ac637db4f3009a58
Documentation, style, test suite changes and typo fixes.
New bsdtar tests for --acls and --fflags options.
2017-03-02 21:13:25 +00:00
Martin Matuska
4b729aff5b Update vendor/libarchive to git d6b1bb9f7ea7bc153b7356e8e345c9e48005821a
Release 3.3.1

Notable vendor changes:
  PR #501: improvements in ACL path handling
  PR #724: fix hang when reading malformed cpio files
  PR #864: fix out of bounds read with malformed GNU tar archives
  Test suite improvements

New options to bsdtar that enable or disable reading and/or writing of:
  Access Control Lists (--acls, --no-acls)
  Extended file flags (--fflags, --no-fflags)
  Extended attributes (--xattrs, --no-xattrs)
2017-03-02 21:02:17 +00:00
Martin Matuska
b2ee1181b4 Update vendor/libarchive to git 0edabbad1f44641c64fe9d0cbaed27ed93ab38c2
Vendor changes:
Make SCHILY.acl.ace header more compact (NFSv4 ACLs)

Vendor bugfixes:
zip reader integer parsing fix (OSS-Fuzz 556)
spelling fixes (issue #863)
2017-02-15 20:00:36 +00:00
Martin Matuska
638a0d360a Update vendor/libarchive to git b3bd0b81a1a06909f766dea8be4072ef81de62b8
Vendor bugfixes:
cpio reader sanity fix (OSS-Fuzz 504)
WARC reader sanity fixes (OSS-Fuzz 511, 526, 532, 552)
mtree reader time parsing fix (OSS-Fuzz 538)
XAR reader memleak fix (OSS-Fuzz 551)
2017-02-10 23:12:38 +00:00
Martin Matuska
91360634ec Update vendor/libarchive to git d77b577b2d5aa259fca06313c4940e1e61ab1e0e
Vendor changes (relevant to FreeBSD):
- bugfixes, improvemens and optimizations in ACL code
- NFSv4 ACLs can now be extracted from Solaris tar archives

Security fixes:
- cab reader: endless loop when parsing MSZIP signature (OSS-Fuzz 335)
- LHA reader: heap-buffer-overflow in lha_read_file_header_1() (CVE-2017-5601)
- LZ4 reader: null-pointer dereference in lz4_filter_read_legacy_stream()
  (OSS-Fuzz 453)
- mtree reader: heap-buffer-overflow in detect_form() (OSS-Fuzz 421, 443)
- WARC reader: heap-buffer-overflow in xstrpisotime() (OSS-Fuzz 382, 458)

Memory leak fixes:
- ACL support: free memory allocated by acl_get_qualifier()
- disk writer: missing free in create_filesystem_object()
- file reader: fd leak (Coverity 1016755)
- gnutar writer: fix free in archive_write_gnutar_header() (Coverity 1016752)
- iso 9660 reader: missing free in parse_file_info() (part. Coverity 1016754)
- program reader: missing free in __archive_read_program()
- program writer: missing free in __archive_write_program_free()
- xar reader: missing free in xar_cleanup()
- xar reader: missing frees in expat_xmlattr_setup() (Coverity 1229979-1229981)
- xar writer: missing free in file_free()
- zip reader: missing free in zip_read_locazip_read_local_file_header()
2017-02-02 00:20:18 +00:00
Martin Matuska
2a59734ec2 Update vendor/libarchive to git 22f2d190639e6bd496a3b82f70c01fba0d38b40a
Vendor changes:
#691: Support for SCHILY.xattr extended attributes
#854: Spelling fixes

Multiple fixes in ACL code:
  - prefer acl_set_fd_np() to acl_set_fd()
  - if acl_set_fd_np() fails, do no fallback to acl_set_file()
  - do not warn if trying to write ACLs to a filesystem without ACL support
  - fix id handling in archive_acl_(from_to)_text*() for NFSv4 ACLs
2017-01-10 21:18:32 +00:00
Martin Matuska
36dffdb4e5 Update vendor/libarchive to git ab94a813b0f64cbc1bcb952bf55424a2d9c7f1d9
Vendor bugfixes:
Use __LA_DEPRECATED macro with functions deprecated in 379867e (r310796)
2016-12-30 23:00:00 +00:00
Martin Matuska
79b08f16f5 Update vendor/libarchive to git 2a2488a81599f9cd065a8254b16a6fd48d81c3b4
Vendor bugfixes:
PR #843: Fix memory leak of struct archive_entry in cpio/cpio.c
PR #851: Spelling fixes
Fix two protoypes in manual page archive_read_disk.3
2016-12-30 01:34:06 +00:00
Martin Matuska
6802f55462 Update vendor/libarchive to git e8a9de5eaf3b79fc3d990d056343bb52c51c5ba4
Fix style typo in tar.5
2016-12-30 01:31:03 +00:00
Martin Matuska
dc8e86c53b Update vendor/libarchive to git to 379867ecb330b3a952fb7bfa7bffb7bbd5547205
Vendor changes:
PR #771: Add NFSv4 ACL support to pax and restricted pax
2016-12-30 01:27:27 +00:00
Martin Matuska
cda329a1ca Update vendor/libarchive to git to 42a3408ac7df1e69bea9ea12b72e14f59f7400c0
Vendor bugfixes:

PR 844: Coverity bug fixes in tests
PR 846: Spelling fixes
PR 850: Fix issues with reading certain jar files
PR 826: OpenSSL 1.1 support
PR 830, 831, 833: Spelling fixes
OSS-Fuzz 227, 230, 239: Fix possible memory leak in archive_read_free()
OSS-Fuzz 237: Fix heap buffer overflow when reading invalid ar archives
OSS-Fuzz 286: Bugfix in archive_strncat_l()
2016-12-27 00:51:53 +00:00
Martin Matuska
fb179c62da Add vendor/libarchive/dist files missing in r310115 2016-12-17 02:01:05 +00:00
Martin Matuska
8e86d3576b Update vendor/libarchive to git to 30528ed7a9f479f1c363ee8cfa1c5eb4c7d9be10
Vendor bugfixes:

PR 826: OpenSSL 1.1 support
PR 830, 831, 833: Spelling fixes
OSS-Fuzz 227, 230, 239: Fix possible memory leak in archive_read_free()
OSS-Fuzz 237: Fix heap buffer overflow when reading invalid ar archives
2016-12-15 15:35:53 +00:00
Enji Cooper
f428c3b114 Merge PR to address libarchive/test coverity issues
Obtained from:	libarchive (f9e3de49fb294901374e0c8c6c2ceaeea7b6d6c0)
2016-12-12 02:12:51 +00:00
Enji Cooper
48de454141 Merge PR to address tar/test coverity issues
Obtained from:	libarchive (fd0ea220635939ffe4b9ffb5cacaaa526a25b5ae)
2016-12-12 02:11:30 +00:00
Enji Cooper
373c71780b Free p (the memory allocated via slurpfile) when done with the contents
Reported by:	Coverity
CID:	1331631, 1331632, 1331633, 1331646

Obtained from: libarchive (ebe29c0ec3b1aaa424df9cf884721c6018c676f4)
2016-12-12 02:09:31 +00:00
Martin Matuska
36f3c6516a Update vendor/libarchive to git ddb3954bfdb9a0a98d50fb1c50cbecb603d9adf0
Vendor bugfixes:

libarchive #831:
  Spelling fixes
libarchive #832:
  Relax sanity checks of number fields in tar header even more
OSS-Fuzz #16:
  Fix possible hang in uudecode_filter_read()
OSS-Fuzz #220:
  Reject an 'ar' filename table larger than 1GB or a filename larger
  than 1MB.
2016-12-06 00:35:20 +00:00