100 Commits
Author SHA1 Message Date
Martin Matuška 03e15babd6 CI: Update FreeBSD build environments (#2534)
FreeBSD 13.4 -> 13.5
FreeBSD 14.1 -> 14.2
2025-03-11 06:15:49 -07:00
Martin Matuška 2cea675da2 tests: redirect stdout in one call in test_extract_tar_absolute_paths (#2386)
This redirects the message "Removing leading '/' from member names"
from stderr to a file in one case.
2024-10-25 18:45:28 +01:00
Martin Matuška d8c3b97b31 tests: use const char instead of char in one case (#2381)
Found in test_extract_cpio_absolute_paths.c when compiling FreeBSD base
2024-10-13 13:41:06 -07:00
Martin Matuška c0ce80b970 CI: Update build environments (#2373)
FreeBSD 13.3 -> 13.4
FreeBSD 14.0 -> 14.1
Ubuntu 22.04 -> 24.04
2024-10-12 09:31:20 -07:00
Martin Matuška 10c817cdc3 tests: change file format from dos to unix in one test file (#2376) 2024-10-11 20:54:59 -07:00
Martin Matuška 9d5289ae9e Fix pathname overwrite in header_old_tar() (#2360)
Fixes #2359
2024-10-06 20:31:38 -07:00
Martin Matuška a5e5efe13a tar: free two temporary allocated strings after use (#2255)
OSS-Fuzz issue: 70020
2024-07-04 15:56:52 -07:00
Martin MatuškaandRose 826c0afe19 Resolve TODO: Return uname and gname overrides (#2141)
Simplify introducing a struct cpio_owner

Co-authored-by: Rose <83477269+AtariDreams@users.noreply.github.com>
2024-05-13 08:44:28 +02:00
Martin Matuška d517c678b8 unzip: do not use getenv() and setenv() in test_I.c (#2177)
This setenv() call may clobber the memory pointed to by lang.

It is also insufficient, since you don't run in a clean environment, so
LANG may be overridden by an inherited LC_ALL or LC_CTYPE, or by the
user's .profile (remember that system() does not execute the command
directly, but passes it to a shell).

Reported-By: dag-erling (quoting)
2024-05-09 18:00:33 -07:00
Martin MatuškaandJustin Vreeland 91f27004a5 Update AppleDouble support for directories (#2108)
This is a clone of the reverted pull request #2100. Due to the latest
circumstances we should require a more deep review of each new PR.

---------

Co-authored-by: Justin Vreeland <j_vreeland@apple.com>
2024-04-20 20:23:22 -07:00
Martin Matuška 99de4691b4 Merge pull request #1806 from kikht/share-write
Use FILE_SHARE_WRITE and FILE_SHARE_DELETE when opening files on Windows
2022-12-07 13:06:19 +01:00
Martin Matuška e2b1a66d0a Merge pull request #1771 from EwgeniWolowik/extend_cleanup_pathname_by_windows_remote_path
Fixed issue #1770: base dir deals with network drive paths like \\server\file
2022-12-06 12:11:34 +01:00
Martin Matuška 6c2077d863 Merge pull request #1802 from banjiuqingshan/master
free mstr to fix memory leaks
2022-12-06 12:11:03 +01:00
Martin Matuška 06a4b1018e Merge pull request #1772 from bgermann/master
archive_entry_pathname() tries UTF-8 if MBS returns EILSEQ
2022-12-06 12:10:48 +01:00
Martin Matuška 6bea1a69c9 Merge pull request #1793 from flyingdutchman23/fix-cmake-warning
Fix CMake warning
2022-12-06 09:58:24 +01:00
Martin Matuška a8b00bf148 Merge pull request #1805 from banjiuqingshan/sync-master
use regfree to release the memory
2022-12-06 09:57:02 +01:00
Martin Matuška fa4b613f2e Merge pull request #1790 from jvoisin/extend_nocrcerr
Extend the usage of the DONT_FAIL_ON_CRC_ERROR macro
2022-11-02 09:55:23 +01:00
Martin Matuška 410ecbd3a7 Merge pull request #1786 from Malterlib/oob-windows-symlinks
Fix Windows symlink checks can reads past end of string
2022-11-02 09:53:46 +01:00
Martin Matuška 9ff3a595aa Merge pull request #1784 from vtorri/vtorri_win10_2
cmake: set WINDOWS_VERSION to WIN10 by default
2022-10-19 13:28:10 +02:00
Martin Matuška 01a280fbf0 Merge pull request #1736 from uckelman-sf/mingw_fixes
Fixes for running tests on Windows (or Wine)
2022-09-05 14:56:09 +02:00
Martin Matuška 1385cd9c51 Merge pull request #1688 from hemnstill/zstd_windows
include zstd 1.5.2 on windows ci builds
2022-06-29 10:41:30 +02:00
Martin Matuška fc11e632f6 Merge pull request #1744 from seanm/snprintf
Fixed issue #1743: Changed sprintf to safer snprintf
2022-06-29 10:41:03 +02:00
Martin Matuška 12b9856a44 Merge pull request #1729 from bog-dan-ro/fix_comiple_android
Fix compile on Android
2022-06-19 08:36:18 +02:00
Martin Matuška b63340c3a4 Merge pull request #1732 from asuka-mio/master
Bionic c deprecates readdir_r too
2022-06-19 08:33:03 +02:00
Martin Matuška 4351580ee9 Merge pull request #1742 from emaste/master
CI: update FreeBSD versions
2022-06-19 08:27:38 +02:00
Martin Matuška 60d790ff7f Merge pull request #1724 from elieux-contrib/wincrypto-sha256-384-512-fix
archive_digest: Use correct providers with Windows Crypto
2022-05-29 09:35:22 +02:00
Martin Matuška 987587214a Merge pull request #1730 from gportay/fix-documentation
archive_write_open.3, archive_read_open.3: ends
2022-05-29 09:33:28 +02:00
Martin Matuška b1aa465b21 Merge pull request #1723 from Biswa96/win32-static-openssl
autotools: Fix static linking when openssl is enabled in windows
2022-04-16 13:05:02 +02:00
Martin Matuška 042956b1b8 Merge pull request #1714 from Biswa96/win32-openssl
Revert "Fix check for openssl on Windows"
2022-04-11 16:27:45 +02:00
Martin Matuška dcbfb9d253 Merge pull request #1720 from eworm-de/markdown
README: fix markdown syntax
2022-04-11 16:26:25 +02:00
Martin Matuska 8694ac9984 Libarchive 3.6.2dev 2022-04-08 14:47:05 +02:00
Martin Matuska 6c3301111c CI: Update dependencies for Windows build
Upgrade zlib to 1.2.12
Upgrade bzip2 to 10fe37f2e
2022-04-08 13:31:34 +02:00
Martin Matuska 2bc228b539 Release 3.6.1 2022-04-08 12:09:20 +02:00
Martin Matuška 5be68f17d2 Merge pull request #1717 from evelikov/ssl
archive_digest: check return value of EVP_DigestInit()
2022-04-07 01:28:08 +02:00
Martin Matuska db71455371 RAR reader: fix heap-use-after-free in run_filters()
OSS-Fuzz issue 46279
Fixes #1715
2022-04-03 12:06:24 +02:00
Martin Matuska 9ad5f07749 ISO reader: fix possible heap buffer overflow in read_children()
OSS-Fuzz issue: 38764
Fixes #1685
2022-03-30 23:41:14 +02:00
Martin Matuška 6d56dfd6ef Merge pull request #1679 from michael-o/hp-ux-dirfd
Add macro for dirfd() on HP-UX because no full POSIX.1-2008 coverage …
2022-03-12 10:19:16 +01:00
Martin Matuska 3f8f054ed1 build: fix detection of readdir_r() and dirfd() in configure.ac
Fixes #1537
2022-03-10 11:00:26 +01:00
Martin Matuska 1271f775dc RAR reader: fix null-dereference in RAR (v4) filter code
Add safety check to run_filters() and fix return codes

Reported-by: OSS-Fuzz #44843
2022-02-19 20:43:22 +01:00
Martin Matuska 72ce1ff7c6 7zip reader: style fixes after 3962d596d 2022-02-19 00:39:24 +01:00
Martin Matuška 808b8dcff5 Merge pull request #1670 from bradking/include-platform-first
windows: include archive_platform.h first in blake2s sources
2022-02-19 00:36:52 +01:00
Martin Matuška bd89d4f89a Merge pull request #1668 from mgorny/missing-zlib
Fix some test failures when building --without-zlib
2022-02-19 00:36:32 +01:00
Martin Matuška 3962d596da Merge pull request #1671 from cielavenir/fix7zPPMDReadBeyondBoundary
Fix 7z PPMD reading beyond boundary
2022-02-19 00:35:44 +01:00
Martin Matuska 93f03b0f5d ci (GitHub Actions): build on Windows 2022 and use Visual Studio 17 2022 2022-02-17 17:10:51 +01:00
Martin Matuska 52efa50c69 RAR reader: fix heap-use-after-free in RAR (v4) filter code
Rework function expand() to process integer passed by reference
and return an archive error code.

Fixes: 01a2d329df (support rar filters)
Reported-by: OSS-Fuzz #44547
2022-02-16 21:52:56 +01:00
Martin Matuska 4af83bbfe0 tests: reduce sample size for RAR filter test 2022-02-14 01:13:41 +01:00
Martin Matuska 1ab9d09fac Libarchive 3.6.1dev 2022-02-14 01:13:03 +01:00
Martin Matuska 9147def1da Release 3.6.0 2022-02-09 09:41:14 +01:00
Martin Matuška 926f1cb080 Merge pull request #1665 from juikim/master
bsdtar(1): Document threads options for zstd and xz
2022-02-09 08:35:52 +01:00
Martin Matuska 65799e42fe Libarchive 3.6.0dev 2022-02-08 10:48:08 +01:00
Martin Matuska 7f4529dda9 CI: add dist-artifact 2022-02-08 09:52:02 +01:00
Martin Matuska 700dc6844a tests: fix style in test_utils/test_main.c 2022-02-08 08:27:11 +01:00
Martin Matuška fd8fe9c561 Merge pull request #1657 from kientzle/ReorganizeTestCode
Reorganize test code a bit
2022-02-08 08:25:55 +01:00
Martin Matuška 568b0c45c9 Merge pull request #1664 from juikim/master
Enable LZMA support for FreeBSD
2022-02-08 08:25:23 +01:00
Martin Matuška 52224ebc24 Merge pull request #1493 from antekone/rar5_ossfuzz_30459
RAR5 reader: add more checks for invalid extraction parameters
2022-02-08 08:16:45 +01:00
Martin Matuška 2a149c9b98 Merge pull request #1663 from yelkarama/master
Fix typo in libarchive/archive_read_support_filter_lzop.c
2022-02-07 20:59:23 +01:00
Martin Matuska 9e52796150 untar.c: style fixes 2022-02-07 10:48:51 +01:00
Martin Matuska 3e4d83b668 tar: fix format name typo in creation_set.c
Closes #1659
2022-02-07 09:25:30 +01:00
Martin Matuška c9788f9b70 Merge pull request #1170 from kidandcat/patch-1
Windows support for contrib/untar
2022-02-07 00:59:09 +01:00
Martin Matuška 7d3c18ab8a Merge pull request #1491 from antekone/rar5_ossfuzz_30442
RAR5 reader: fix invalid memory access in some files
2022-02-06 19:35:30 +01:00
Martin Matuška 404873ce40 Merge pull request #1448 from arichardson/add-test-slow-host
Reduce test_write_format_7zip_large_lzma1 buffer size
2022-02-06 11:29:22 +01:00
Martin Matuška e9de2f4017 Merge pull request #1655 from alexey-pelykh/fix-android_lf-include
Include android_lf.h only for libarchive sources
2022-02-06 09:49:28 +01:00
Martin Matuska a1f65ab79a zip: fix possible endless loop if reading a truncated zstd archive
The fix is analogous to the behavior in case of bzip2 compression.
2022-02-05 21:04:33 +01:00
Martin Matuska 6aba352357 dist: add missing zipx-zstd test files to Makefile.am 2022-02-05 10:46:13 +01:00
Martin Matuška 0c99a746ed Merge pull request #1518 from ghost/zip-zstd
ZIP reader: added support for Zstd decompression
2022-02-05 10:32:21 +01:00
Martin Matuška 83b3d522e1 Merge pull request #1603 from evelikov/reader-filter-vtbl
Reader filter rework - simplification, robustness and deadcode removal
2022-02-05 10:02:15 +01:00
Martin Matuška b9675888c2 Merge pull request #1492 from antekone/rar5_ossfuzz_30448
RAR5 reader: fixed out of bounds read in some files
2022-01-12 16:02:58 +01:00
Martin Matuška 7ef089ec20 Merge pull request #1639 from todd-richmond/master
zip size entry of -1 should be treated the same as 0
2022-01-04 01:19:07 +01:00
Martin Matuška d7fec62918 Merge pull request #1503 from legnaleurc/rar_filter
support rar filters (without VM filter support)
2022-01-03 12:12:05 +01:00
Martin Matuška 9d3291f91d Merge pull request #1642 from goshhhy/irix-blake2
update BLAKE2_PACKED macro with a non-GCCism fallback
2022-01-03 12:07:45 +01:00
Martin Matuška dd733f5c25 Merge pull request #1625 from evelikov/gc-sections
Instrument gcc/clang to discard unused code during link
2022-01-03 12:07:13 +01:00
Martin Matuška 38db08b166 Merge pull request #1643 from eworm-de/link-unescape
unescape when extracting link
2022-01-03 11:56:38 +01:00
Martin Matuška bbd43772d2 Merge pull request #1645 from ppentchev/roam-lzip-large-dict
Raise the lzip max dictionary size to 512MB.
2022-01-03 11:49:08 +01:00
Martin Matuška e374fbac9b Merge pull request #1649 from petris/master
Support libzstd compiled with compressor disabled
2022-01-03 11:39:15 +01:00
Martin Matuska 34462ad61f CI: fix ubuntu distcheck
Add missing test_read_format_rar5_sfx.exe.uu
Be more verbose on failure
2022-01-03 11:23:12 +01:00
Martin Matuška 3215c2c2f6 Merge pull request #1640 from wlozano0collabora/fix-tar
Fix check for tape device
2022-01-03 09:41:04 +01:00
Martin Matuška d0db337f36 Merge pull request #1641 from goshhhy/irix-printf
define printf format specifiers if not present
2022-01-03 09:38:57 +01:00
Martin Matuška 349bfd66c5 Merge pull request #1644 from Tarsnap/2038
Fix Y2038 check
2022-01-03 09:35:45 +01:00
Martin Matuška 411284e3f5 Merge pull request #1585 from JFranklin13/rar5_sfx
Add support for rar5 sfx files
2021-12-15 19:19:37 +01:00
Martin Matuška 56c920eab3 Merge pull request #1626 from evelikov/bsdtar-allow-ax
tar: demote -xa from error to a warning
2021-12-01 00:30:08 +01:00
Martin Matuška ebc12c0c9c Merge pull request #1633 from Changaco/patch-1
Fix the archive_write_disk.3 man page
2021-12-01 00:29:04 +01:00
Martin Matuška 4f598ce28a Merge pull request #1614 from diabonas/add-no-read-sparse
Add ARCHIVE_READDISK_NO_SPARSE/--no-read-sparse to improve reproducibility of generated archives
2021-11-21 11:32:19 +01:00
Martin Matuška 6795d02555 Merge pull request #1621 from botovq/openssl_compat
Remove unnecessary OpenSSL compat ifdef.
2021-11-21 00:19:57 +01:00
Martin Matuška 72a68925fb Merge pull request #1623 from DHowett/dev/duhowett/calling_convention
win32: specify the calling convention for functions that interact with libc
2021-11-21 00:19:02 +01:00
Martin Matuška badedb495e Merge pull request #1622 from DHowett/dev/duhowett/user32
win32: remove the hard dependency on user32.dll
2021-11-21 00:18:45 +01:00
Martin Matuška 055adea85c Merge pull request #1620 from rlibby/tar-cru-ignore-zeros
tar: respect --ignore-zeros in c r & u modes when reading archives
2021-11-21 00:17:33 +01:00
Martin Matuska ede459d2eb archive_write_disk_posix: fix writing fflags broken in 8a1bd5c
The fixup list was erroneously assumed to be directories only.
Only in the case of critical file flags modification (e.g. SF_IMMUTABLE
on BSD systems), other file types (e.g. regular files or symbolic links)
may be added to the fixup list. We still need to verify that we are writing
to the correct file type, so compare the archive entry file type with
the file type of the file to be modified.

Fixes #1617
2021-11-17 21:20:09 +01:00
Martin Matuška f7afd7a9c3 Merge pull request #1588 from IohannRabeson/build_fixes
Windows build fix
2021-11-16 01:09:43 +01:00
Martin Matuška ac8a548fad Merge pull request #1591 from JiaT75/Added_documentation_for_exported_functions_in_archive_read_disk
Added documentation for exported functions in archive_read_disk
2021-11-16 01:01:17 +01:00
Martin Matuška 09dcd2430a Merge pull request #1598 from JiaT75/zip_entry_size_unset_store_fix_1547
Zip entry size unset now honors user requested compression level
2021-11-16 00:59:49 +01:00
Martin Matuška 9b7e7b329d Merge pull request #1601 from evelikov/rm-fallthrough
mtree reader: return early, remove fallthrough chain
2021-11-16 00:54:51 +01:00
Martin Matuška f0726c1119 Merge pull request #1606 from JiaT75/clean_up_archive_read_disk_descend_functions
Cleaned up archive_read_disk_descend functions
2021-11-16 00:46:53 +01:00
Martin Matuška e37efc16c8 Merge pull request #1609 from JiaT75/added_error_message_to_warning_bsdtar_1561
Added error text to warning when untaring with bsdtar
2021-11-16 00:45:36 +01:00
Martin Matuška 86c9361fdb Merge pull request #1602 from evelikov/editorconfig
editorconfig: add simple top-level file
2021-10-26 14:22:23 +02:00
Martin Matuška 8989ff0598 Merge pull request #1589 from JiaT75/added-missing-checks-for-canLzip-canLzma-and-canXz
added missing checks for canLzip, canLzma, and canXz
2021-10-26 14:21:51 +02:00
Martin Matuška 26c613a99b Merge pull request #1590 from jsonn/master
Support ARCHIVE_EXTRACT_SECURE_NODOTDOT on Windows
2021-10-26 14:03:10 +02:00
Martin Matuška 04e72a0a82 Merge pull request #1593 from JiaT75/added_bin_to_gitignore
Added bin folder to .gitignore
2021-10-26 13:51:25 +02:00
Martin Matuška ef10f22c2f Merge pull request #1604 from AdamKorcz/fuzz1
Add CIFuzz
2021-10-26 13:24:03 +02:00
Martin Matuška dc321febde Merge pull request #1575 from Hello71/patch-1
libarchive.3: update archive format list
2021-09-30 15:41:29 +02:00
Martin Matuška cc8020be1a Merge pull request #1567 from russelltg/russell_zstd_threads
zstd filter writer: add threads option
2021-09-30 13:20:05 +02:00