]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
5 weeks agoMerge pull request #3113 from stoeckmann/fflags_strcpy
Martin Matuška [Tue, 9 Jun 2026 06:25:10 +0000 (08:25 +0200)] 
Merge pull request #3113 from stoeckmann/fflags_strcpy

7zip/rar5: Simplify file attribute handling

(cherry picked from commit 5ce51120876625acbc61b95b0336c62b34daf294)

5 weeks agoMerge pull request #3108 from stoeckmann/windows_legacy
Martin Matuška [Tue, 9 Jun 2026 06:24:24 +0000 (08:24 +0200)] 
Merge pull request #3108 from stoeckmann/windows_legacy

Reduce Windows legacy support

(cherry picked from commit 5c516433eed9ce3bec448e0c6aa3259ac2a2d75b)

5 weeks agoMerge pull request #3116 from stoeckmann/hardening
Dustin L. Howett [Tue, 9 Jun 2026 00:29:04 +0000 (19:29 -0500)] 
Merge pull request #3116 from stoeckmann/hardening

This PR does not fix any reachable issue, but fixes the code in question nonetheless to prevent regressions in the future:

- Do not call `archive_copy_error` after `archive_read_free` to prevent a user after free bug
- Reset `vtable` to `NULL` to prevent `close` from being called after filter initialization error, since `data` is already freed and set to `NULL`, preventing a `NULL` pointer dereference

(cherry picked from commit 06e296c72985f14f21c4ff310a1e2c945c418bbc)

5 weeks agoMerge pull request #3021 from chnzzh/fix/iso9660-ce-loop
Dustin L. Howett [Tue, 9 Jun 2026 00:06:43 +0000 (19:06 -0500)] 
Merge pull request #3021 from chnzzh/fix/iso9660-ce-loop

iso9660: fix infinite loop on self-referencing CE entry
(cherry picked from commit e501d52c74a8f764dd08ff6c93c1e03b4655ca06)

5 weeks agoMerge pull request #3127 from shxz9u/fix-callback-data-realloc
Dustin L. Howett [Mon, 8 Jun 2026 20:39:07 +0000 (15:39 -0500)] 
Merge pull request #3127 from shxz9u/fix-callback-data-realloc

Avoid updating allocation state before realloc succeeds

(cherry picked from commit e78c98d896a86c40753b7f5039a54451afd1a0fb)

5 weeks agoMerge pull request #3126 from stoeckmann/shar
Dustin L. Howett [Mon, 8 Jun 2026 20:30:26 +0000 (15:30 -0500)] 
Merge pull request #3126 from stoeckmann/shar

shar: Check `archive_entry_clone` result
(cherry picked from commit a9a9039866032dc7ea5d8ed30400515e77a78adc)

5 weeks agoMerge pull request #3125 from stoeckmann/disk_clone
Dustin L. Howett [Mon, 8 Jun 2026 20:29:48 +0000 (15:29 -0500)] 
Merge pull request #3125 from stoeckmann/disk_clone

Check allocation in `_archive_write_disk_header`

(cherry picked from commit 2b21f5a6ccb96c02630c846ff464c39bcd1a8b62)

5 weeks agoMerge pull request #3124 from stoeckmann/entry_mem
Dustin L. Howett [Mon, 8 Jun 2026 20:28:01 +0000 (15:28 -0500)] 
Merge pull request #3124 from stoeckmann/entry_mem

entry_link_resolver: Improve memory handling

(cherry picked from commit 5335a4ed977194302ae8e3a0002c3e9924addcf7)

5 weeks agoMerge pull request #3123 from stoeckmann/cab_remaining
Dustin L. Howett [Mon, 8 Jun 2026 20:27:04 +0000 (15:27 -0500)] 
Merge pull request #3123 from stoeckmann/cab_remaining

cab: Simplify `cab_read_ahead_remaining`
(cherry picked from commit 1a248e3a36d429554c5a8e025a8e5e77960c3e4d)

5 weeks agoMerge pull request #3122 from stoeckmann/into_buffer
Dustin L. Howett [Mon, 8 Jun 2026 20:26:25 +0000 (15:26 -0500)] 
Merge pull request #3122 from stoeckmann/into_buffer

Remove `archive_read_data_into_buffer` comment

(cherry picked from commit 53f2275bf0240f098ab5f2a3d485289ca96df0ea)

5 weeks agoMerge pull request #3117 from i1011/iso9660-null-deref-fix
Dustin L. Howett [Mon, 8 Jun 2026 20:25:59 +0000 (15:25 -0500)] 
Merge pull request #3117 from i1011/iso9660-null-deref-fix

iso9660: Fix null dereference in set_directory_record_rr
(cherry picked from commit aff2e9d8d976ab788c606bd7a156aae56626e36c)

5 weeks agoMerge pull request #3039 from dnelson-1901/manpage-fixes
Dustin L. Howett [Wed, 3 Jun 2026 05:35:22 +0000 (22:35 -0700)] 
Merge pull request #3039 from dnelson-1901/manpage-fixes

(cherry picked from commit cda40b999b46cdc019b34f1c2e88dfdd51bf915f)

5 weeks agoMerge pull request #3109 from stoeckmann/windows_concurrency
Dustin L. Howett [Wed, 3 Jun 2026 05:33:10 +0000 (22:33 -0700)] 
Merge pull request #3109 from stoeckmann/windows_concurrency

(cherry picked from commit 5c920c88f43288cf28e7a6013b36a8e9613370ca)

5 weeks agoMerge pull request #3112 from stoeckmann/windows_partition
Dustin L. Howett [Wed, 3 Jun 2026 04:58:40 +0000 (21:58 -0700)] 
Merge pull request #3112 from stoeckmann/windows_partition

(cherry picked from commit cc85a2cdf042dbb25e226dcf088ad53306876180)

5 weeks agoMerge pull request #3106 from stoeckmann/precompute_tables
Tim Kientzle [Wed, 3 Jun 2026 04:10:22 +0000 (21:10 -0700)] 
Merge pull request #3106 from stoeckmann/precompute_tables

Precompute static tables

(cherry picked from commit bf268f086d7f352a6d257778b274fb5b7e2a8133)

5 weeks agoMerge pull request #3107 from stoeckmann/dynamic
Tim Kientzle [Wed, 3 Jun 2026 04:09:33 +0000 (21:09 -0700)] 
Merge pull request #3107 from stoeckmann/dynamic

Turn static state variables dynamic

(cherry picked from commit e48b9c4cf45c7dc053d781b6260b42437c42c5c8)

5 weeks agoMerge pull request #3110 from stoeckmann/static_style
Tim Kientzle [Wed, 3 Jun 2026 04:08:35 +0000 (21:08 -0700)] 
Merge pull request #3110 from stoeckmann/static_style

Turn two static tables `static const`

(cherry picked from commit b660b6965cb55e7e2f594a56ce9aa1af3ba3b720)

5 weeks agoMerge pull request #3111 from stoeckmann/tests_assert_a
Tim Kientzle [Wed, 3 Jun 2026 04:07:42 +0000 (21:07 -0700)] 
Merge pull request #3111 from stoeckmann/tests_assert_a

tests: Use assertEqualInt for archive_write_free
(cherry picked from commit 6895434b64a0231036fac19a07dd78d4064b6069)

5 weeks agoMerge pull request #3045 from datauwu/iso9660-joliet-patch
Martin Matuška [Tue, 2 Jun 2026 13:06:34 +0000 (15:06 +0200)] 
Merge pull request #3045 from datauwu/iso9660-joliet-patch

iso9660: bound duplicate identifier extension placement
(cherry picked from commit 1b080e9c2a127515cb3cffa64800db07884037da)

5 weeks agoMerge pull request #3073 from stoeckmann/lz4_zstd_32
Martin Matuška [Tue, 2 Jun 2026 13:05:42 +0000 (15:05 +0200)] 
Merge pull request #3073 from stoeckmann/lz4_zstd_32

lz4/zstd: Fix 32 bit platform endless loop and OOB access during bidding

(cherry picked from commit 6ac02f95216103b8e71730fc80bdcfb874ce22e4)

5 weeks agoMerge pull request #3091 from yPin9/fix/rar5-consume-remaining
Martin Matuška [Tue, 2 Jun 2026 13:04:44 +0000 (15:04 +0200)] 
Merge pull request #3091 from yPin9/fix/rar5-consume-remaining

rar5: skip unconsumed block bytes before ARCHIVE_RETRY
(cherry picked from commit 9b5c25087e31c9b168287b1830a4f68c4eae0495)

5 weeks agoMerge pull request #3103 from stoeckmann/uu_32_oob
Martin Matuška [Tue, 2 Jun 2026 13:04:00 +0000 (15:04 +0200)] 
Merge pull request #3103 from stoeckmann/uu_32_oob

uu: Extend range checks to avoid 32 bit OOB
(cherry picked from commit 85ea76b373ed74c3045d729c537413ca17c50704)

5 weeks agoMerge pull request #2837 from mmatuska/ci-firecracker
Martin Matuška [Tue, 2 Jun 2026 13:03:35 +0000 (15:03 +0200)] 
Merge pull request #2837 from mmatuska/ci-firecracker

CI: add FreeBSD 15 build via firecracker VM to GitHub Actions
(cherry picked from commit 93065aac9200a7c71d09b92fc498597375ed4935)

5 weeks agoMerge pull request #3081 from stoeckmann/tests_i686_asan
Tobias Stoeckmann [Tue, 2 Jun 2026 06:12:43 +0000 (08:12 +0200)] 
Merge pull request #3081 from stoeckmann/tests_i686_asan

tests: Skip checks on low memory systems
(cherry picked from commit f1b6650c674b0be7ac19f35779ea38d90423675a)

5 weeks agoMerge pull request #3104 from stoeckmann/uu_cleanup
Tobias Stoeckmann [Tue, 2 Jun 2026 06:12:22 +0000 (08:12 +0200)] 
Merge pull request #3104 from stoeckmann/uu_cleanup

uu: Minor code cleanups
(cherry picked from commit 1e0736a92e1943280768535686be7681391bb9aa)

5 weeks agoMerge pull request #3082 from stoeckmann/bzip2_dead
Dustin L. Howett [Mon, 1 Jun 2026 20:15:06 +0000 (15:15 -0500)] 
Merge pull request #3082 from stoeckmann/bzip2_dead

The check for end of file (`avail == 0`) happens after the check for a `NULL` return value of `__archive_read_filter_ahead`.

Remove it, because at this stage, it's definitely truncated, not just end of file.

(cherry picked from commit 17b4395a152c31b8cef59e27229b6c496ea38ca2)

5 weeks agoMerge pull request #3102 from DHowett/bug/7z-build
Dustin L. Howett [Mon, 1 Jun 2026 19:02:14 +0000 (14:02 -0500)] 
Merge pull request #3102 from DHowett/bug/7z-build

7zip: fix a number of issues in zstd detection

- -Wunused-function when ZSTD_compressStream is unavailable
- Incorrect automatic selection of 7Z_ZSTD when ZSTD_compressStream is unavailable
- Other instances of HAVE_ZSTD_H not matching HAVE_LIBZSTD

Co-authored-by: Tobias Stoeckmann <tobias@stoeckmann.org>
(cherry picked from commit 49b93838002c60b291e435f4d4f08a3495f8e855)

5 weeks agoMerge pull request #3090 from DHowett/ci/cygwin
Dustin L. Howett [Mon, 1 Jun 2026 17:54:56 +0000 (12:54 -0500)] 
Merge pull request #3090 from DHowett/ci/cygwin

ci: migrate Windows Cygwin to GitHub Actions
(cherry picked from commit 4a18b9a4b59632b3f451b57223f1e19b953a47de)

5 weeks agoMerge pull request #3094 from i1011/xar-redundant-dec-fix
Dustin L. Howett [Mon, 1 Jun 2026 11:50:50 +0000 (06:50 -0500)] 
Merge pull request #3094 from i1011/xar-redundant-dec-fix

(cherry picked from commit 5ddb5efce14a40955bd176b1657371fbf728cfcd)

5 weeks agoMerge pull request #3089 from mostynb/remove_cirrus_ci
Martin Matuška [Mon, 1 Jun 2026 07:58:42 +0000 (09:58 +0200)] 
Merge pull request #3089 from mostynb/remove_cirrus_ci

Remove Cirrus CI setup, it is shutting down in a few days

(cherry picked from commit ebfa344055faa9bfee450a962977b180e57a04eb)

5 weeks agoMerge pull request #3093 from stoeckmann/lz4_skip
Martin Matuška [Mon, 1 Jun 2026 07:55:02 +0000 (09:55 +0200)] 
Merge pull request #3093 from stoeckmann/lz4_skip

lz4: Improve truncated input stream detection
(cherry picked from commit 66026841b21540441ec5244316b24dce6549969f)

5 weeks agoMerge pull request #3095 from stoeckmann/afio_header
Martin Matuška [Mon, 1 Jun 2026 07:54:26 +0000 (09:54 +0200)] 
Merge pull request #3095 from stoeckmann/afio_header

cpio: Improve afio header detection
(cherry picked from commit 36d69b3ec81affb13f8b1deadd7dcc8bfeb81459)

5 weeks agoMerge pull request #3096 from stoeckmann/filters_comments
Martin Matuška [Mon, 1 Jun 2026 07:53:36 +0000 (09:53 +0200)] 
Merge pull request #3096 from stoeckmann/filters_comments

filters: Update comments
(cherry picked from commit fcbbce329ceba1f55a8ab90ced51e1779e0ea27c)

5 weeks agoMerge pull request #3097 from stoeckmann/typos
Martin Matuška [Mon, 1 Jun 2026 07:53:20 +0000 (09:53 +0200)] 
Merge pull request #3097 from stoeckmann/typos

Fix typos in comments and error message

(cherry picked from commit 05eff7d2da76bc1d59af6784c143a240b5a0793e)

5 weeks agoMerge pull request #3099 from stoeckmann/7zip_seek
Martin Matuška [Mon, 1 Jun 2026 07:51:32 +0000 (09:51 +0200)] 
Merge pull request #3099 from stoeckmann/7zip_seek

7zip: Extend support for filtered input
(cherry picked from commit 0ebc440d8e45b2dc9030eb2bbeb55ed9b9109b0c)

5 weeks agoMerge pull request #3100 from stoeckmann/lz4_xxh32
Martin Matuška [Mon, 1 Jun 2026 07:50:34 +0000 (09:50 +0200)] 
Merge pull request #3100 from stoeckmann/lz4_xxh32

lz4: Check `XXH32_init` result
(cherry picked from commit bb0d9dfd3976a58643b6d176bba14f12afd0c765)

5 weeks agoMerge pull request #3088 from mostynb/improve_bsdtar_subst_error_messages
Dustin L. Howett [Fri, 29 May 2026 18:48:14 +0000 (13:48 -0500)] 
Merge pull request #3088 from mostynb/improve_bsdtar_subst_error_messages

tar: Improve -s Invalid replacement string error messages
(cherry picked from commit 6a8af66e641f2c9c4ae5daa3ec31427b57b4e1aa)

5 weeks agoMerge pull request #3085 from stoeckmann/gzip_check
Tobias Stoeckmann [Fri, 29 May 2026 16:00:49 +0000 (18:00 +0200)] 
Merge pull request #3085 from stoeckmann/gzip_check

gzip: Support more large in-memory archives
(cherry picked from commit 3b6b10e7e2838eed19e1a6bf138ad4b176d68b97)

5 weeks agoMerge pull request #3092 from vmihalis/https-config-fetch
Tim Kientzle [Fri, 29 May 2026 16:00:39 +0000 (09:00 -0700)] 
Merge pull request #3092 from vmihalis/https-config-fetch

build: fetch config.guess/config.sub over HTTPS
(cherry picked from commit a70de97aab893f73c2e63c45dfc1210437dad487)

5 weeks agoMerge pull request #3079 from i1011/win-ci-missing-errcheck-fix
Dustin L. Howett [Thu, 28 May 2026 21:56:46 +0000 (16:56 -0500)] 
Merge pull request #3079 from i1011/win-ci-missing-errcheck-fix

CI: Add missing exit on error in windows CI
(cherry picked from commit 2ef07fe0d192b879691af672a9ac0cc1baf3f3b1)

5 weeks agoMerge pull request #3087 from stoeckmann/cygwin_rar
Dustin L. Howett [Thu, 28 May 2026 21:56:36 +0000 (16:56 -0500)] 
Merge pull request #3087 from stoeckmann/cygwin_rar

rar: Simplify FILE_ATTRIBUTE_DIRECTORY check
(cherry picked from commit 7858c8cbf55446911609471409109811cfaea2a3)

5 weeks agoMerge pull request #3083 from stoeckmann/read_int_overflow
Tobias Stoeckmann [Thu, 28 May 2026 20:46:43 +0000 (22:46 +0200)] 
Merge pull request #3083 from stoeckmann/read_int_overflow

Fix integer overflow in __archive_read_filter_ahead

(cherry picked from commit d5053c35125d7daf5aefa4d9577a38c90fb252ac)

5 weeks agoMerge pull request #3084 from stoeckmann/filters_total_out
Tobias Stoeckmann [Thu, 28 May 2026 20:46:23 +0000 (22:46 +0200)] 
Merge pull request #3084 from stoeckmann/filters_total_out

Drop total_out tracking from read filters

(cherry picked from commit e1efb9a7ebaae2874d9052bf8c14ea05bfebfe72)

5 weeks agoMerge pull request #3080 from stoeckmann/tests_skip
Tobias Stoeckmann [Wed, 27 May 2026 20:01:10 +0000 (22:01 +0200)] 
Merge pull request #3080 from stoeckmann/tests_skip

tests: Fix memory leaks when skipping
(cherry picked from commit d6654b4e01b46ed73f2cd8b3c9a44446c30a21b7)

5 weeks agoMerge pull request #3061 from tosanjay/warc-header-popul-ehdr-leak
Tim Kientzle [Wed, 27 May 2026 04:02:28 +0000 (21:02 -0700)] 
Merge pull request #3061 from tosanjay/warc-header-popul-ehdr-leak

warc writer: free hdr on _popul_ehdr overflow in _warc_header

(cherry picked from commit c15997d4f303e01da11cb13e95783866c5cb0687)

5 weeks agoMerge pull request #3078 from vlmarek/solaris-skip-string-conversion-fail-tests
Tim Kientzle [Wed, 27 May 2026 03:29:44 +0000 (20:29 -0700)] 
Merge pull request #3078 from vlmarek/solaris-skip-string-conversion-fail-tests

Skip tests where Solaris iconv substitutes invalid chars

(cherry picked from commit 43a50356575b24c723ee44e55ae7693c62a2c2ee)

5 weeks agoMerge pull request #3067 from fdegros/fix-7z-seek-null-error
Dustin L. Howett [Tue, 26 May 2026 22:35:41 +0000 (17:35 -0500)] 
Merge pull request #3067 from fdegros/fix-7z-seek-null-error

7-Zip: Set error message in case of error
(cherry picked from commit b4d8c89bfa813d372aa51dd3151a34a8b6f936ac)

5 weeks agoMerge pull request #3077 from stoeckmann/32build
Tobias Stoeckmann [Tue, 26 May 2026 20:06:54 +0000 (22:06 +0200)] 
Merge pull request #3077 from stoeckmann/32build

32 bit: Fix compile warnings and test failure

(cherry picked from commit cd61f4cc59a6785a47e3182d6467ef92169e1c8a)

5 weeks agoMerge pull request #3049 from KongQBin/master
Dustin L. Howett [Tue, 26 May 2026 19:38:40 +0000 (14:38 -0500)] 
Merge pull request #3049 from KongQBin/master

build: fix global state leakage in crypto/library checks
(cherry picked from commit 7235ae87141a95911490a1261941b27fd2b93960)

5 weeks agoMerge pull request #3075 from stoeckmann/tests_close
Dustin L. Howett [Tue, 26 May 2026 19:24:46 +0000 (14:24 -0500)] 
Merge pull request #3075 from stoeckmann/tests_close

tests: Use assertEqualIntA for archive_*_close
(cherry picked from commit d59e51f97bb8f2284b7eac76a27e16dcb5344677)

5 weeks agoMerge pull request #2972 from stoeckmann/rr_moved
Tobias Stoeckmann [Tue, 26 May 2026 19:14:32 +0000 (21:14 +0200)] 
Merge pull request #2972 from stoeckmann/rr_moved

iso9660: Add test for #2978
(cherry picked from commit a662e108f263f89f27f356955a971365841b2742)

5 weeks agoMerge pull request #3055 from stoeckmann/cpio_uaf
Dustin L. Howett [Tue, 26 May 2026 19:00:53 +0000 (14:00 -0500)] 
Merge pull request #3055 from stoeckmann/cpio_uaf

cpio: Fix UAF in error path
Add entry only after its full initialization into list. Otherwise the error handling of a failing strdup would have to unlink the entry again.

Fixes: 16ad9310733e ("cpio reader: Validate pathname in record_hardlink")
Resolves #3053.

(cherry picked from commit c03931678bab0d215f4ea589eb59b9e2cc81cdc5)

5 weeks agoMerge pull request #3050 from stoeckmann/bzip2_large
Tobias Stoeckmann [Tue, 26 May 2026 18:00:19 +0000 (20:00 +0200)] 
Merge pull request #3050 from stoeckmann/bzip2_large

bzip2: Support large in-memory archives
(cherry picked from commit 8b56378deb271036f0a48948820844dff9f0e6fc)

5 weeks agoMerge pull request #3072 from stoeckmann/tests_free
Tobias Stoeckmann [Tue, 26 May 2026 17:59:56 +0000 (19:59 +0200)] 
Merge pull request #3072 from stoeckmann/tests_free

tests: Avoid assertEqualIntA with archive_*_free
(cherry picked from commit 5c8a084f9d31c615ad8503ffe4394838ccdad1e5)

5 weeks agoMerge commit from fork
Tobias Stoeckmann [Sun, 17 May 2026 08:21:08 +0000 (10:21 +0200)] 
Merge commit from fork

read: Fix memory corruption on filtered multi-volume archives
(cherry picked from commit 68b69249de94b3993f5db705333bc07610a53540)

5 weeks agoMerge pull request #3074 from stoeckmann/7zip_stream
Tobias Stoeckmann [Tue, 26 May 2026 17:59:38 +0000 (19:59 +0200)] 
Merge pull request #3074 from stoeckmann/7zip_stream

7zip: Support streamable reading again
(cherry picked from commit 531d70f88cb0ba6a44f3f72995c42ac5188f58ca)

5 weeks agoMerge pull request #2790 from LumioseSil/SetFilePointerEx_perso
Dustin L. Howett [Sun, 24 May 2026 19:59:52 +0000 (14:59 -0500)] 
Merge pull request #2790 from LumioseSil/SetFilePointerEx_perso

Replace SetFilePointerEx_perso (local reimplementation) with SetFilePointerEx,
as we no longer need to support Windows XP

(cherry picked from commit 4db79557822195c824fa25f3fefd7077b946a42f)

5 weeks agoMerge pull request #3062 from tosanjay/7zip-file-new-utf16name-leak
Dustin L. Howett [Sun, 24 May 2026 17:43:52 +0000 (12:43 -0500)] 
Merge pull request #3062 from tosanjay/7zip-file-new-utf16name-leak

7zip writer: free file->utf16name on symlink UTF-8 conversion failure

(cherry picked from commit d86214bfbbda4eb6bde7ab37c838e79bea2043cf)

5 weeks agoMerge pull request #3057 from i1011/mtree-null-deref-fix
Dustin L. Howett [Sun, 24 May 2026 17:43:25 +0000 (12:43 -0500)] 
Merge pull request #3057 from i1011/mtree-null-deref-fix

mtree: Fix null dereference for some corner cases:

- a symlink whose target is never set
- emitting a root directory entry that is actually a file

(cherry picked from commit ea7084a7356a59fe6a990a2142de807c8cd77426)

5 weeks agoMerge pull request #3071 from stoeckmann/rar5_doublefree
Dustin L. Howett [Sun, 24 May 2026 17:43:00 +0000 (12:43 -0500)] 
Merge pull request #3071 from stoeckmann/rar5_doublefree

rar5: Avoid dangling pointers in init_unpack
(cherry picked from commit 42453cf16255800726b4efedab25138639ceef20)

5 weeks agoMerge pull request #3064 from i1011/version-details-fix
Dustin L. Howett [Sun, 24 May 2026 17:39:08 +0000 (12:39 -0500)] 
Merge pull request #3064 from i1011/version-details-fix

Fix libattr version returned in archive_version_details, as well as a leak.

(cherry picked from commit b8a7b027f85e39092b4c5d759172a5691d995f4c)

5 weeks agoMerge pull request #3051 from stoeckmann/compress_debug
Tobias Stoeckmann [Sun, 24 May 2026 08:15:35 +0000 (10:15 +0200)] 
Merge pull request #3051 from stoeckmann/compress_debug

compress: Remove harmful "dead" code
(cherry picked from commit e20a0b2136d2b10afbe8fa118788affd5a70b93d)

5 weeks agoMerge pull request #3052 from stoeckmann/tar_wempty
Tobias Stoeckmann [Sun, 24 May 2026 08:14:50 +0000 (10:14 +0200)] 
Merge pull request #3052 from stoeckmann/tar_wempty

tar: Fix OOB with empty wide character directory names
(cherry picked from commit 51e9cd6dc762cd10454eaeec052808f8700ec9c8)

5 weeks agoMerge pull request #3035 from stoeckmann/acl_string
Tobias Stoeckmann [Sun, 24 May 2026 08:14:11 +0000 (10:14 +0200)] 
Merge pull request #3035 from stoeckmann/acl_string

acl: Simplify string creation
(cherry picked from commit 97595197b2ca141295fdcf7e68f3e384308136be)

5 weeks agoMerge pull request #3041 from stoeckmann/xar_fflags
Tobias Stoeckmann [Sun, 24 May 2026 08:13:34 +0000 (10:13 +0200)] 
Merge pull request #3041 from stoeckmann/xar_fflags

xar: Fix writer OOB accesses with fflags
(cherry picked from commit e681e45b31b9c89403b08476e97c39d3318fd92c)

5 weeks agoMerge pull request #3060 from stoeckmann/xar_free
Dustin L. Howett [Sun, 24 May 2026 06:19:12 +0000 (01:19 -0500)] 
Merge pull request #3060 from stoeckmann/xar_free

xar: fix fflags_text leak in file_free
(cherry picked from commit 6f95523f45bacc9a84a3c6a74a1c0bda9b7ccb7a)

5 weeks agoMerge pull request #3056 from markjdb/master
Tim Kientzle [Wed, 20 May 2026 22:57:07 +0000 (15:57 -0700)] 
Merge pull request #3056 from markjdb/master

libarchive: Force GNU iconv compatibility on FreeBSD
(cherry picked from commit c97baadd869645d35991917632cd2140fe8f7444)

5 weeks agoMerge pull request #3054 from i1011/add-filter-mismatch-fix
Tim Kientzle [Wed, 20 May 2026 22:55:18 +0000 (15:55 -0700)] 
Merge pull request #3054 from i1011/add-filter-mismatch-fix

filter: Fix mismatched filter function dispatch table entry in archive_write_add_filter.c
(cherry picked from commit 2e183f664ca97c6c4897b58f6b61a1b47cb91a19)

5 weeks agoMerge pull request #3027 from stoeckmann/xar_debug
Tobias Stoeckmann [Tue, 19 May 2026 15:19:06 +0000 (17:19 +0200)] 
Merge pull request #3027 from stoeckmann/xar_debug

xar: Do not modify variables in DEBUG block
(cherry picked from commit fd182c5ba56cff54d6963c3928ca4d9f363b9ff9)

5 weeks agoMerge pull request #3033 from stoeckmann/filter_strcpy
Tobias Stoeckmann [Tue, 19 May 2026 15:18:05 +0000 (17:18 +0200)] 
Merge pull request #3033 from stoeckmann/filter_strcpy

filter: Remove unneeded strcpy calls
(cherry picked from commit 0637bc42213372ad9225088799d3390ce0b53a47)

5 weeks agoMerge pull request #3036 from stoeckmann/cmdline_strdup
Tobias Stoeckmann [Tue, 19 May 2026 15:17:42 +0000 (17:17 +0200)] 
Merge pull request #3036 from stoeckmann/cmdline_strdup

cmdline: Use free+strdup instead of realloc+strcpy
(cherry picked from commit 14c07f64ae9f1dc37de9c8db1df8b63b889376b4)

5 weeks agoMerge pull request #3037 from stoeckmann/strmode_strcpy
Tobias Stoeckmann [Tue, 19 May 2026 15:17:24 +0000 (17:17 +0200)] 
Merge pull request #3037 from stoeckmann/strmode_strcpy

strmode: Remove strcpy usage
(cherry picked from commit ccd2dfbdb27498e925809719e7c5be1b442d4320)

5 weeks agoMerge pull request #3044 from stoeckmann/util_windows_toctou
Tobias Stoeckmann [Tue, 19 May 2026 15:16:28 +0000 (17:16 +0200)] 
Merge pull request #3044 from stoeckmann/util_windows_toctou

util: Fix GetTempPathW TOCTOU race condition
(cherry picked from commit b9eea3e51a4839950651372a798ed91b60932800)

5 weeks agoMerge pull request #3043 from datauwu/cpio-patch
Dustin L. Howett [Sun, 17 May 2026 20:24:24 +0000 (13:24 -0700)] 
Merge pull request #3043 from datauwu/cpio-patch

(cherry picked from commit a651b4fcd8341a02bd36a20008c55f1aa9bd950f)

5 weeks agoMerge pull request #3040 from kientzle/fix/unchecked-alloc
Tim Kientzle [Sat, 16 May 2026 22:04:07 +0000 (15:04 -0700)] 
Merge pull request #3040 from kientzle/fix/unchecked-alloc

Fix a number of unchecked memory allocations

(cherry picked from commit c18a5c7e5f1ffdd5f9568411261593abebbfd285)

5 weeks agoMerge pull request #3038 from stoeckmann/tar_util_string
Tobias Stoeckmann [Sat, 16 May 2026 19:40:12 +0000 (21:40 +0200)] 
Merge pull request #3038 from stoeckmann/tar_util_string

tar: Improve string safety in list_item_verbose
(cherry picked from commit 7eeaced52585c70a2de473dc16473d839f8a7258)

5 weeks agoMerge pull request #3032 from stoeckmann/dotdot
Tim Kientzle [Sat, 16 May 2026 16:39:31 +0000 (09:39 -0700)] 
Merge pull request #3032 from stoeckmann/dotdot

Port iso9660 fix for `..` (dot dot) path normalization to mtree and xar

(cherry picked from commit 89a6d760c1f6f4f840f86ee22b12a2d1973af157)

5 weeks agoMerge pull request #3028 from br0nzu/xar-fstype-cleanup
Tim Kientzle [Thu, 14 May 2026 02:24:27 +0000 (19:24 -0700)] 
Merge pull request #3028 from br0nzu/xar-fstype-cleanup

Free XAR xattr fstype metadata during cleanup

(cherry picked from commit 27b08f61da304afa8bc75901117c9a077e41c5bb)

5 weeks agoMerge pull request #3030 from stoeckmann/xar_atol
Tim Kientzle [Thu, 14 May 2026 01:51:45 +0000 (18:51 -0700)] 
Merge pull request #3030 from stoeckmann/xar_atol

xar: Avoid integer overflows in number parsers
(cherry picked from commit 6d15675331b9046b6c1b6c58c7fe72c6f5ffb961)

5 weeks agoMerge pull request #3029 from stoeckmann/iso_memleak
Tim Kientzle [Thu, 14 May 2026 01:51:29 +0000 (18:51 -0700)] 
Merge pull request #3029 from stoeckmann/iso_memleak

iso9660: Fix memory leaks on error paths
(cherry picked from commit d0ee2d32efa2275b773c9e396a151dc0111dca04)

5 weeks agoMerge pull request #3020 from stoeckmann/sparse_uaf_test
Tim Kientzle [Sun, 10 May 2026 15:45:58 +0000 (08:45 -0700)] 
Merge pull request #3020 from stoeckmann/sparse_uaf_test

sparse: Add archive_entry_sparse_reset test
(cherry picked from commit 1546fbffe844287cad6959fe77233d3369f375fc)

5 weeks agoMerge pull request #3016 from ZX41R/oss-fuzz-write-disk-secure-coverage
Tim Kientzle [Sat, 9 May 2026 21:12:56 +0000 (14:12 -0700)] 
Merge pull request #3016 from ZX41R/oss-fuzz-write-disk-secure-coverage

Improve write-disk fuzzer coverage

(cherry picked from commit dca1bcd27d22b2acc8b23e66498d82cac92a7ac6)

5 weeks agoMerge pull request #3015 from datauwu/master
Tim Kientzle [Sat, 9 May 2026 21:10:02 +0000 (14:10 -0700)] 
Merge pull request #3015 from datauwu/master

rar: avoid reading NEWSUB extended data during header parsing
(cherry picked from commit 6246a353268bece5fdf6912ae69983a187728a9e)

5 weeks agoMerge pull request #2978 from stoeckmann/joliet_id_loop
Tim Kientzle [Sat, 9 May 2026 20:50:41 +0000 (13:50 -0700)] 
Merge pull request #2978 from stoeckmann/joliet_id_loop

iso9660: Fix infinite loop in Joliet ID generation
(cherry picked from commit 0ec85e45e4ac72613c8bde9d82f407efe13a492f)

5 weeks agoMerge pull request #2928 from stoeckmann/anchor_no_flags
Tim Kientzle [Sat, 9 May 2026 20:49:25 +0000 (13:49 -0700)] 
Merge pull request #2928 from stoeckmann/anchor_no_flags

pathmatch: Treat anchors not special without flags
(cherry picked from commit 5ed0b5ea88bbe75e1e5e6e273724433bd59e5736)

5 weeks agoMerge pull request #2927 from stoeckmann/pathmatch_recursion
Tim Kientzle [Sat, 9 May 2026 20:48:20 +0000 (13:48 -0700)] 
Merge pull request #2927 from stoeckmann/pathmatch_recursion

archive_match: Prevent call stack overflow

(cherry picked from commit 5aa477220e0c45a7b30c9d36d27c8bc27fbb72cb)

5 weeks agoMerge pull request #2930 from stoeckmann/mtree_option
Tim Kientzle [Sat, 9 May 2026 16:15:26 +0000 (09:15 -0700)] 
Merge pull request #2930 from stoeckmann/mtree_option

mtree: Fix time value parser truncation
(cherry picked from commit dda246a62e4bc7bfdb3368e4d7910ca0e9950c00)

5 weeks agoMerge pull request #2929 from stoeckmann/7zip_codec_id
Tim Kientzle [Sat, 9 May 2026 16:14:11 +0000 (09:14 -0700)] 
Merge pull request #2929 from stoeckmann/7zip_codec_id

7zip: Verify that Codec ID fits into 63 bit
(cherry picked from commit abed05f954fc2749d75e0a0254c91af23f9a1358)

5 weeks agoMerge pull request #2982 from stoeckmann/mtree_hex
Tim Kientzle [Sat, 9 May 2026 16:11:14 +0000 (09:11 -0700)] 
Merge pull request #2982 from stoeckmann/mtree_hex

mtree: Fix hex parser
(cherry picked from commit c25415ade4054e8194fd230be4986d7c2b61dd38)

5 weeks agoMerge pull request #2974 from stoeckmann/joliet_id
Tim Kientzle [Sat, 9 May 2026 16:10:07 +0000 (09:10 -0700)] 
Merge pull request #2974 from stoeckmann/joliet_id

iso9660: Fix OOB during Joliet ID generation
(cherry picked from commit a330921e49d07ef0a136c191cc5c45eef4fab3d9)

5 weeks agoMerge pull request #2969 from stoeckmann/glibc234
Tim Kientzle [Sat, 9 May 2026 15:58:28 +0000 (08:58 -0700)] 
Merge pull request #2969 from stoeckmann/glibc234

Fix build with glibc 2.43

(cherry picked from commit 3f7a0040557683533ba0c36952b83e21b78c3f7f)

5 weeks agoMerge pull request #3019 from kientzle/kientzle-sparse-uaf-012
Tim Kientzle [Sat, 9 May 2026 02:04:25 +0000 (19:04 -0700)] 
Merge pull request #3019 from kientzle/kientzle-sparse-uaf-012

[sparse] UAF in sparse_reset

(cherry picked from commit f5166ca923a7aa97dd8a36a6233c7c6b3303594c)

5 weeks agoMerge pull request #3018 from tbkka/tbkka-mtree-null-deref-014
Tim Kientzle [Sat, 9 May 2026 02:03:11 +0000 (19:03 -0700)] 
Merge pull request #3018 from tbkka/tbkka-mtree-null-deref-014

[MTREE] NULL pointer deref during archive close

(cherry picked from commit bcb158d409940525195b9201e95f4f043418a029)

5 weeks agoMerge pull request #3017 from tbkka/tbkka-iso9660-015-019
Tim Kientzle [Fri, 8 May 2026 23:27:48 +0000 (16:27 -0700)] 
Merge pull request #3017 from tbkka/tbkka-iso9660-015-019

[ISO9660] Fix NULL deref and Joliet ID overflow

(cherry picked from commit 98f357902040fb7e03e5f5818b05f4ef911e2712)

5 weeks agoMerge pull request #3013 from tbkka/tbkka-xar-undefined-011-018
Tim Kientzle [Fri, 8 May 2026 22:40:05 +0000 (15:40 -0700)] 
Merge pull request #3013 from tbkka/tbkka-xar-undefined-011-018

[XAR] Fix two UB

(cherry picked from commit cb9f77e6e5079b623c49b8c1cb1194d9d77c096f)

5 weeks agoMerge pull request #2984 from tyler-yankee/cpio-hardlink-pathname-null
Tim Kientzle [Fri, 8 May 2026 17:16:29 +0000 (10:16 -0700)] 
Merge pull request #2984 from tyler-yankee/cpio-hardlink-pathname-null

cpio reader: Validate pathname in record_hardlink

(cherry picked from commit 411a4479b9a1ba87f0cc65e31fac83fbe3ef9c6a)

5 weeks agoMerge pull request #3014 from kientzle/kientzle-test_utils-ub
Tim Kientzle [Fri, 8 May 2026 05:20:19 +0000 (22:20 -0700)] 
Merge pull request #3014 from kientzle/kientzle-test_utils-ub

[test_utils] Fix a minor UB

(cherry picked from commit 1fcae10bf77d40357889eb031851618556c563c5)

5 weeks agoMerge pull request #3012 from tbkka/tbkka-pathmatch-buffer-overread-003
Tim Kientzle [Fri, 8 May 2026 04:40:10 +0000 (21:40 -0700)] 
Merge pull request #3012 from tbkka/tbkka-pathmatch-buffer-overread-003

[pathmatch] Heap buffer over-read

(cherry picked from commit b3b546d00873ffa0f156da530c24b842824bd9a9)

5 weeks agoMerge pull request #3011 from tbkka/tbkka-tar-acl-oob-002
Tim Kientzle [Fri, 8 May 2026 04:31:14 +0000 (21:31 -0700)] 
Merge pull request #3011 from tbkka/tbkka-tar-acl-oob-002

[ACL] Parser out-of-bounds read

(cherry picked from commit 58810c2faeb168bbcead1ea95bddba62a0b6fd92)

5 weeks agoMerge pull request #3010 from kientzle/kientzle-overlarge-dates
Tim Kientzle [Fri, 8 May 2026 01:21:00 +0000 (18:21 -0700)] 
Merge pull request #3010 from kientzle/kientzle-overlarge-dates

Date parsing: reject dates with numbers of more than 4 digits

(cherry picked from commit c6322495f1d598160e762301503b4bb710f86d68)