Martin Matuska
2610a79fd5
7-zip and rar5: add constifications missing in e150c2f41 ( #3113 )
2026-07-07 13:53:19 +02:00
Martin Matuška
2b9cacf6e8
Merge pull request #3171 from libarchive/dependabot/github_actions/all-actions-2217aebe03
...
CI: Bump actions/checkout from 6.0.3 to 7.0.0 in the all-actions group
2026-06-23 09:56:06 +02:00
Martin Matuška
9819bc9370
Merge pull request #3172 from stoeckmann/lafe_fnmatch
...
libarchive_fe: Import FreeBSD's fnmatch
2026-06-23 09:42:50 +02:00
Martin Matuška
ba387256e0
Merge pull request #2918 from aale24/fix-test-format-newc-race
...
Fix test_format_newc timestamp race condition
2026-06-19 09:48:25 +02:00
Martin Matuška
2498165482
Merge pull request #3159 from stoeckmann/ckd_size
...
Use checked size_t arithmetic
2026-06-18 16:37:15 +02:00
Martin Matuška
ead081b704
Merge pull request #3157 from libarchive/dependabot/github_actions/all-actions-0a5d8bb8fa
...
CI: Bump the all-actions group across 1 directory with 5 updates
2026-06-17 11:30:05 +02:00
Martin Matuška
fc0530d502
Merge pull request #3150 from DHowett/ci/windows-package-dependencies
...
build: windows: get all CI dependencies from a package manager
2026-06-17 09:29:46 +02:00
Martin Matuška
26f68fcc6d
Merge pull request #3144 from stoeckmann/cab_truncation
...
cab: Improve truncation detection
2026-06-17 08:49:31 +02:00
Martin Matuška
f6dea9e94b
Merge pull request #3134 from stoeckmann/archive_integer
...
Introduce `archive_integer.h` for checked arithmetic
2026-06-17 08:48:55 +02:00
Martin Matuška
983e1edcdd
Merge pull request #2967 from bgilbert/deflate
...
Fix `test_write_filter_gzip` on Ubuntu s390x
2026-06-09 08:40:07 +02:00
Martin Matuška
65eaff4835
Merge pull request #3131 from stoeckmann/rpm_fsm
...
rpm: Refactor filter
2026-06-09 08:35:23 +02:00
Martin Matuška
5f8f651fae
Merge pull request #3128 from stoeckmann/into_fd
...
Improve `archive_read_data_into_fd` with sparse files
2026-06-09 08:31:24 +02:00
Martin Matuška
d9279e464c
Merge pull request #3121 from stoeckmann/rar5_bytes_remaining
...
rar5: fix signed integer underflow in bytes_remaining
2026-06-09 08:30:03 +02:00
Martin Matuška
b3da16bbf2
Merge pull request #3120 from stoeckmann/archive_endian
...
Extend `archive_endian.h` usage
2026-06-09 08:29:23 +02:00
Martin Matuška
a116558eb4
Merge pull request #3098 from stoeckmann/filter_read_ahead
...
filters: Simplify `__archive_read_filter_ahead` use
2026-06-09 08:28:38 +02:00
Martin Matuška
f7ec3a2505
Merge pull request #3119 from stoeckmann/7zip_u32_oflow
...
7zip: Fix range check in get_pe_sfx_offset
2026-06-09 08:27:58 +02:00
Martin Matuška
792c87d5bd
Merge pull request #3115 from stoeckmann/gzip_writer_mem
...
gzip: Fix OOB in writer with huge filename
2026-06-09 08:26:54 +02:00
Martin Matuška
7957d6d3b0
Merge pull request #3114 from stoeckmann/open_oob
...
Fix OOB in `archive_read_open_filenames_w` on some systems
2026-06-09 08:25:51 +02:00
Martin Matuška
5ce5112087
Merge pull request #3113 from stoeckmann/fflags_strcpy
...
7zip/rar5: Simplify file attribute handling
2026-06-09 08:25:10 +02:00
Martin Matuška
5c516433ee
Merge pull request #3108 from stoeckmann/windows_legacy
...
Reduce Windows legacy support
2026-06-09 08:24:24 +02:00
Martin Matuška
1b080e9c2a
Merge pull request #3045 from datauwu/iso9660-joliet-patch
...
iso9660: bound duplicate identifier extension placement
2026-06-02 15:06:34 +02:00
Martin Matuška
6ac02f9521
Merge pull request #3073 from stoeckmann/lz4_zstd_32
...
lz4/zstd: Fix 32 bit platform endless loop and OOB access during bidding
2026-06-02 15:05:42 +02:00
Martin Matuška
9b5c25087e
Merge pull request #3091 from yPin9/fix/rar5-consume-remaining
...
rar5: skip unconsumed block bytes before ARCHIVE_RETRY
2026-06-02 15:04:44 +02:00
Martin Matuška
85ea76b373
Merge pull request #3103 from stoeckmann/uu_32_oob
...
uu: Extend range checks to avoid 32 bit OOB
2026-06-02 15:04:00 +02:00
Martin Matuška
93065aac92
Merge pull request #2837 from mmatuska/ci-firecracker
...
CI: add FreeBSD 15 build via firecracker VM to GitHub Actions
2026-06-02 15:03:35 +02:00
Martin Matuska
f1c6aa7b07
CI: add FreeBSD-15-amd64 build via firecracker
2026-06-01 10:37:21 +02:00
Martin Matuška
ebfa344055
Merge pull request #3089 from mostynb/remove_cirrus_ci
...
Remove Cirrus CI setup, it is shutting down in a few days
2026-06-01 09:58:42 +02:00
Martin Matuška
66026841b2
Merge pull request #3093 from stoeckmann/lz4_skip
...
lz4: Improve truncated input stream detection
2026-06-01 09:55:02 +02:00
Martin Matuška
36d69b3ec8
Merge pull request #3095 from stoeckmann/afio_header
...
cpio: Improve afio header detection
2026-06-01 09:54:26 +02:00
Martin Matuška
fcbbce329c
Merge pull request #3096 from stoeckmann/filters_comments
...
filters: Update comments
2026-06-01 09:53:36 +02:00
Martin Matuška
05eff7d2da
Merge pull request #3097 from stoeckmann/typos
...
Fix typos in comments and error message
2026-06-01 09:53:20 +02:00
Martin Matuška
0ebc440d8e
Merge pull request #3099 from stoeckmann/7zip_seek
...
7zip: Extend support for filtered input
2026-06-01 09:51:32 +02:00
Martin Matuška
bb0d9dfd39
Merge pull request #3100 from stoeckmann/lz4_xxh32
...
lz4: Check `XXH32_init` result
2026-06-01 09:50:34 +02:00
Martin Matuška
740be68fc0
Merge pull request #2985 from stoeckmann/7zip_sfx
...
7zip: Harden SFX parser
2026-05-02 20:48:01 +02:00
Martin Matuška
cf9bc89194
Merge pull request #2988 from kientzle/kientzle-acl-to-text
...
[archive_acl] Fix buffer overrun and wrong output for NULL-name ACL entries
2026-05-02 20:43:56 +02:00
Martin Matuška
2860b2a792
Merge pull request #2961 from bgilbert/malformed
...
Add malformed CAB test to Autotools
2026-04-18 01:33:00 +02:00
Martin Matuška
fc76727081
Merge pull request #2962 from dag-erling/des/optreset
...
unzip: Remove dead code
test_main: Staticize some variables
2026-04-18 01:27:42 +02:00
Martin Matuška
8d1c9b95f1
Merge pull request #2838 from DHowett/revert-2826-waitpid
...
Revert "Wait for the process instead of busy wait loop"
2026-01-07 23:38:30 +01:00
Martin Matuška
3cd503b75a
Merge pull request #2781 from AZero13/ints
...
Remove unneeded int cast
2026-01-05 10:35:59 +01:00
Martin Matuška
86851e3092
Merge pull request #2826 from AZero13/waitpid
...
Wait for the process instead of busy wait loop
2026-01-05 10:33:33 +01:00
Martin Matuška
02eba33825
Merge pull request #2836 from ngie-eign/add-freebsd-15-cirrus-ci
...
Expand the test matrix to include 15.x images/ZFS
2026-01-05 10:32:49 +01:00
Martin Matuška
b2d68e2f1a
Merge pull request #2813 from AZero13/memcpy
...
We copy from p, not p + module_len
2025-12-26 10:22:13 +01:00
Martin Matuška
1cd0b9179c
Merge pull request #2796 from vcoxvco/fix_unninit
...
libarchive/archive_util.c: Uninitialized variable
2025-12-25 10:16:46 +01:00
Martin Matuška
095609e89b
Merge pull request #2816 from AZero13/strdup
...
Error check strdup for path name
2025-12-25 10:14:23 +01:00
Martin Matuška
5c84afd664
Merge pull request #2814 from AZero13/gname
...
uname_override checks gname_override when it should check uname_override
2025-12-25 10:04:44 +01:00
Martin Matuška
f366e98107
Merge pull request #2789 from libarchive/dependabot/github_actions/all-actions-50b857948b
...
CI: Bump the all-actions group across 1 directory with 3 updates
2025-12-25 10:03:34 +01:00
Martin Matuška
c4597a73f3
Merge pull request #2815 from AZero13/=
...
Use >=, not =>
2025-12-25 10:00:35 +01:00
Martin Matuška
8042630d4f
Merge pull request #2819 from GabrielBarrantes/work/typos
...
Improve wording
2025-12-25 09:48:17 +01:00
Martin Matuška
214ee3edc7
Merge pull request #2820 from skypher/oss-fuzz-expansion
...
Expand OSS-Fuzz integration: 1 → 25 fuzz targets
2025-12-25 09:47:17 +01:00
Martin Matuška
a7f3b56af6
Merge pull request #2809 from mmatuska/fix/2787
...
tar: fix off-bounds read resulting from #2787 (3150539ed )
2025-12-12 12:04:09 +01:00
Martin Matuska
cfb02de558
tar: fix off-bounds read resulting from #2787 ( 3150539ed)
2025-12-09 22:40:42 +01:00
Martin Matuška
728b43c0c1
Merge pull request #2800 from mmatuska/fix/freebsdci
...
CI: use gmake in Cirrus FreeBSD build
2025-12-01 13:31:22 +01:00
Martin Matuska
0a594ab77d
CI: use gmake in Cirrus FreeBSD build
2025-11-28 22:31:25 +01:00
Martin Matuška
a819cc2829
Merge pull request #2797 from mmatuska/fix/treefuncs
...
Partially revert "Merge pull request #2679 from AZero13/error"
2025-11-28 00:57:09 +01:00
Martin Matuska
aac59c1bd5
Partially revert "Merge pull request #2679 from AZero13/error"
...
This reverts commit d8aaf88c9f , reversing
changes made to ee49ac8106 .
tree_reopen() and tree_dup() return NULL only of they
are unable to allocate memory. Otherwise libarchive enters
ARCHIVE_FATAL if trying to walk an enterable but unreadable
directory.
__archive_ensure_cloexec_flag() operates only on fd >= 0
so there is no need to skip it
I have reimplemented the check around fdopendir()
Reported by: Christian Weisgerber from OpenBSD
2025-11-24 14:16:53 +01:00
Martin Matuška
ce7b3f1c15
Merge pull request #2771 from mostynb/lz4_with_leading_skippable_frames
...
Support both lz4 and zstd data with leading skippable frames
2025-11-17 20:30:16 +01:00
Martin Matuška
dbacda991c
Merge pull request #2751 from KlaraSystems/des/zip_magic_numbers
...
Avoid magic numbers in zip support code
2025-11-17 20:27:46 +01:00
Martin Matuška
2caee6a37e
Merge pull request #2752 from KlaraSystems/des/safe-writes-umask
...
Set umask before testing safe writes
2025-11-17 20:26:35 +01:00
Martin Matuška
d5bd2dfafe
Merge pull request #2755 from mmatuska/fix/cirrusci
...
CI: update FreeBSD 14 build environment
2025-11-17 20:24:53 +01:00
Martin Matuska
89cbfe1028
CI: update FreeBSD 14 build environment
2025-10-15 23:41:46 +02:00
Martin Matuška
46fe318edd
Merge pull request #2722 from dependabot
...
CI: Bump the all-actions group across 1 directory with 3 updates
2025-10-11 22:12:11 +02:00
Martin Matuška
ab5cb61f49
Merge pull request #2735 from kientzle/kientzle-err.h-conflict
...
Rename err.h to avoid conflict with system header
2025-09-13 22:01:52 +02:00
Martin Matuška
38debf6be1
Merge pull request #2731 from mmatuska/fix/macosci
...
CI: add workaround for cmake installed from local/pinned tab on GH/MacOS
2025-09-13 21:36:29 +02:00
Martin Matuška
e1dea559c7
Merge pull request #2732 from mmatuska/fix/safe-dir-over-reg-win
...
win: add complementary safe writes fix for Windows to 27588eba5 (#2477 )
2025-09-13 21:36:13 +02:00
Martin Matuska
123d92bc3a
win: add complementary safe writes fix for Windows to 27588eba5 ( #2477 )
2025-09-10 10:59:40 +02:00
Martin Matuska
ff3a0c37aa
CI: add workaround for cmake installed from local/pinned tab on GH/MacOS
2025-09-10 10:50:46 +02:00
Martin Matuška
589659ed7f
Merge pull request #2670 from benoit-pierre/pr/fix_zip_writing_with_zstd_compression_method
...
zip: fix writing with ZSTD compression
2025-09-10 10:41:33 +02:00
Martin Matuška
52db141ece
Merge pull request #2477 from jrtc27/safe-dir-over-reg
...
Fix replacing a regular file with a dir for ARCHIVE_EXTRACT_SAFE_WRITES
2025-09-10 10:40:44 +02:00
Martin Matuška
3b1100f9a9
Merge pull request #2686 from stoeckmann/lseek_win_regression
...
Fix Windows off_t handling
2025-09-10 10:24:34 +02:00
Martin Matuška
6bd863f612
Merge pull request #2710 from meecash/CVE-2025-25724-check_strftime_result
...
Fix CVE-2025-25724 by checking the result of the strftime
2025-09-10 10:22:58 +02:00
Martin Matuška
bf50fe0538
Merge pull request #2723 from KlaraSystems/des/couldnt-visit
...
archive_read_disk_posix: Don't pass -1 to a function expecting errno
2025-08-14 23:22:30 +02:00
Martin Matuška
2db13f7422
Merge pull request #2716 from antekone/bug/GH-2714/infinite-loop/1
...
RAR5 reader: early fail when file declares data for a dir entry
2025-08-14 23:20:55 +02:00
Martin Matuška
93f9e93d73
Merge pull request #2713 from antekone/bug/GH-2711/crash-when-rr/1
...
RAR5 reader: fix multiple issues in extra field parsing function
2025-08-14 23:20:01 +02:00
Martin Matuška
12ffcef28c
Merge pull request #2700 from mostynb/avoid_libxml2_deprecation_warnings
...
xar: avoid libxml2 deprecation warnings
2025-08-14 23:17:39 +02:00
Martin Matuška
6effe2ec6b
Merge pull request #2659 from stoeckmann/chld
...
Improve filter process handling
2025-06-12 10:59:43 +02:00
Martin Matuška
251f7e839c
Merge pull request #2669 from benoit-pierre/pr/minor_test_related_tweaks
...
minor test related tweaks
2025-06-12 10:57:17 +02:00
Martin Matuška
47bdf82489
Merge pull request #2663 from stoeckmann/filename_errpath
...
open_filename: Free memory on error paths
2025-06-12 10:56:32 +02:00
Martin Matuška
c3be70e071
Merge pull request #2665 from stoeckmann/read_data_sparse
...
archive_read_data: Handle sparse holes at end of file correctly
2025-06-12 10:54:08 +02:00
Martin Matuška
9bdc5b82f7
Merge pull request #2668 from stoeckmann/7z_oob
...
7zip: Fix out of boundary access
2025-06-12 10:51:45 +02:00
Martin Matuska
1311a438a3
test_utils/test_main.c: satisfy -Wstrict-prototypes
2025-06-01 23:35:05 +02:00
Martin Matuška
70978468e9
Merge pull request #2627 from heirecka/do-not-hard-code-pkg-config
...
Use PKG_CONFIG instead of hard-coded pkg-config
2025-05-31 21:40:04 +02:00
Martin Matuška
c7b7bd7c0e
Merge pull request #2643 from stoeckmann/tar_pax_sparse
...
tar: Handle extra bytes after sparse entries
2025-05-31 21:31:14 +02:00
Martin Matuska
9eacf09a86
tests: accept underscore in arbitrary third-party version strings
...
Fixes #2626
2025-05-23 13:20:25 +02:00
Martin Matuska
182726d16a
Libarchive 3.9.0dev
2025-05-20 10:29:10 +02:00
Martin Matuska
3128f04f58
7z: fix another out-of-bounds read in 7z SFX archive detection
...
When looping over program header entries (e_shnum)
we need to increment sec_tbl_offset by e_shentsize
and not by fixed values.
Fixes OSS-Fuzz issue 418349489
2025-05-18 03:07:49 +02:00
Martin Matuska
1667b31d0b
7z: fix out-of-bounds read in 7z self extracting archive detection
...
Fixes OSS-Fuzz issue 416832167
2025-05-14 16:18:19 +02:00
Martin Matuska
043b6feeef
Fix tests added in #2284 ( #2387 )
2024-10-23 18:47:32 +02:00
Martin Matuska
206df6192c
Revert "add --mac-metadata test for --format zip - see #2041 ( #2045 )"
...
This reverts commit ea56096020 .
2024-10-23 18:45:23 +02:00
Martin Matuska
915c9f83a4
Libarchive 3.8.0dev
2024-09-13 23:13:01 +02:00
Martin Matuska
12ecf8418a
Release 3.7.5
2024-09-13 22:20:55 +02:00
Martin Matuska
83e8b0ea8c
tests: setenv LANG to en_US.UTF-8 in bsdunzip test_I.c
2024-04-30 11:28:09 +02:00
Martin Matuska
9951b9cd25
Libarchive 3.7.5dev
2024-04-26 12:07:47 +02:00
Martin Matuska
313aa1fa10
Release 3.7.4
2024-04-26 11:22:15 +02:00
Martin Matuska
284ba9539a
CI: add "CI" prefix to dependabot commit messages
2024-04-23 16:32:16 +02:00
Martin Matuska and Mostyn Bramley-Moore
ab27905ae7
zstd: Implement core detection on Windows
...
Fixes #2071
Co-authored-by: Mostyn Bramley-Moore <mostyn@antipode.se >
2024-04-23 15:24:31 +02:00
Martin Matuska
a69a4537a6
CI: add libxml2 to MacOS test build
2024-04-23 11:51:53 +02:00
Martin Matuska
91ba8ceacf
unzip: explicitly set en_US.UTF-8 locale in test_I.c
2024-04-23 07:45:50 +02:00
Martin Matuska
d43c39247f
tests: fix null format string error in test_compat_lzip.c
2024-04-17 09:16:10 +02:00
Martin Matuska
b3be94ba4f
Libarchive 3.7.4dev
2024-04-08 12:17:17 +02:00
Martin Matuska
4fcc02d906
Release 3.7.3
2024-04-08 00:11:03 +02:00