Skip to content

Commit b0ea71a

Browse files
committed
Update vendor/libarchive to 3.8.0
New features: freebsd#2088 7-zip reader: improve self-extracting archive detection freebsd#2137 zip writer: added XZ, LZMA, ZSTD and BZIP2 support #2403 zip writer: added LZMA + RISCV BCJ filter #2601 bsdtar: support --mtime and --clamp-mtime #2602 libarchive: mbedtls 3.x compatibility Security fixes: #2422 tar reader: Handle truncation in the middle of a GNU long linkname CVE-2024-57970 #2532 tar reader: fix unchecked return value in list_item_verbose() CVE-2025-25724 #2532 unzip: fix null pointer dereference CVE-2025-1632 #2568 warc: prevent signed integer overflow #2584 rar: do not skip past EOF while reading #2588 tar: fix overflow in build_ustar_entry #2598 rar: fix double free with over 4 billion nodes #2599 rar: fix heap-buffer-overflow Important bugfixes: #2399 7-zip reader: add SPARC filter support for non-LZMA compressors #2405 tar reader: ignore ustar size when pax size is present #2435 tar writer: fix bug when -s/a/b/ used more than once with b flag #2459 7-zip reader: add POWERPC filter support for non-LZMA compressors #2519 libarchive: handle ARCHIVE_FILTER_LZOP in archive_read_append_filter #2539 libarchive: add missing seeker function to archive_read_open_FILE() #2544 gzip: allow setting the original filename for gzip compressed files #2564 libarchive: improve lseek handling #2582 rar: support large headers on 32 bit systems #2587 bsdtar: don't hardlink negative inode files together #2596 rar: support large headers on 32 bit systems #2606 libarchive: support @-prefixed Unix epoch timestamps as date strings Obtained from: libarchive Vendor commit: 70ff28fcf04ec129a1d064f96e49aa57fcc90e37 CVE: CVE-2024-57970, CVE-2025-1632, CVE-2025-25724
1 parent eff4ff4 commit b0ea71a

File tree

218 files changed

+25143
-2492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+25143
-2492
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ FreeBSD_task:
1010
BS: cmake
1111
matrix:
1212
freebsd_instance:
13-
image_family: freebsd-14-1
13+
image_family: freebsd-14-2
1414
freebsd_instance:
15-
image_family: freebsd-13-4
15+
image_family: freebsd-13-5
1616
prepare_script:
1717
- ./build/ci/cirrus_ci/ci.sh prepare
1818
configure_script:

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
matrix:
1313
bs: [autotools, cmake]
1414
steps:
15-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- name: Install dependencies
17-
run: ./build/ci/github_actions/macos.sh prepare
17+
run: ./build/ci/github_actions/install-macos-dependencies.sh
1818
- name: Autogen
1919
run: ./build/ci/build.sh -a autogen
2020
env:
@@ -23,29 +23,31 @@ jobs:
2323
run: ./build/ci/build.sh -a configure
2424
env:
2525
BS: ${{ matrix.bs }}
26+
# Avoid using liblzma from the Xcode 16 / MacOSX15.0.sdk, which fails RISCV filter tests.
27+
CMAKE_ARGS: -D LIBLZMA_LIBRARY=/opt/homebrew/lib/liblzma.dylib -D LIBLZMA_INCLUDE_DIR=/opt/homebrew/include/lzma.h
2628
- name: Build
2729
run: ./build/ci/build.sh -a build
2830
env:
2931
BS: ${{ matrix.bs }}
30-
MAKE_ARGS: -j
32+
MAKE_ARGS: -j3
3133
- name: Test
3234
run: ./build/ci/build.sh -a test
3335
env:
3436
BS: ${{ matrix.bs }}
3537
SKIP_OPEN_FD_ERR_TEST: 1
3638
IGNORE_TRAVERSALS_TEST4: 1
37-
MAKE_ARGS: -j
39+
MAKE_ARGS: -j3
3840
CTEST_OUTPUT_ON_FAILURE: ON
3941
- name: Install
4042
run: ./build/ci/build.sh -a install
4143
env:
4244
BS: ${{ matrix.bs }}
43-
MAKE_ARGS: -j
45+
MAKE_ARGS: -j3
4446
- name: Artifact
4547
run: ./build/ci/build.sh -a artifact
4648
env:
4749
BS: ${{ matrix.bs }}
48-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
50+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4951
with:
5052
name: libarchive-macos-${{ matrix.bs }}-${{ github.sha }}
5153
path: libarchive.tar.xz
@@ -57,7 +59,7 @@ jobs:
5759
bs: [autotools, cmake]
5860
crypto: [mbedtls, nettle, openssl]
5961
steps:
60-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
62+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6163
- name: Update apt cache
6264
run: sudo apt-get update
6365
- name: Install dependencies
@@ -75,13 +77,13 @@ jobs:
7577
run: ./build/ci/build.sh -a build
7678
env:
7779
BS: ${{ matrix.bs }}
78-
MAKE_ARGS: -j
80+
MAKE_ARGS: -j4
7981
- name: Test
8082
run: ./build/ci/build.sh -a test
8183
env:
8284
BS: ${{ matrix.bs }}
8385
SKIP_OPEN_FD_ERR_TEST: 1
84-
MAKE_ARGS: -j
86+
MAKE_ARGS: -j4
8587
CTEST_OUTPUT_ON_FAILURE: ON
8688
- name: Install
8789
run: ./build/ci/build.sh -a install
@@ -91,14 +93,14 @@ jobs:
9193
run: ./build/ci/build.sh -a artifact
9294
env:
9395
BS: ${{ matrix.bs }}
94-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
96+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9597
with:
9698
name: libarchive-ubuntu-${{ matrix.bs }}-${{ matrix.crypto }}-${{ github.sha }}
9799
path: libarchive.tar.xz
98100
Ubuntu-distcheck:
99101
runs-on: ubuntu-24.04
100102
steps:
101-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
103+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102104
- name: Update package definitions
103105
run: sudo apt-get update
104106
- name: Install dependencies
@@ -113,7 +115,7 @@ jobs:
113115
SKIP_OPEN_FD_ERR_TEST: 1
114116
- name: Dist-Artifact
115117
run: ./build/ci/build.sh -a dist-artifact
116-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
118+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
117119
with:
118120
name: libarchive-${{ github.sha }}
119121
path: libarchive-dist.tar
@@ -125,7 +127,7 @@ jobs:
125127
matrix:
126128
be: [mingw-gcc, msvc]
127129
steps:
128-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
130+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
129131
- name: Install mingw
130132
if: ${{ matrix.be=='mingw-gcc' }}
131133
run: choco install mingw
@@ -161,7 +163,7 @@ jobs:
161163
shell: cmd
162164
env:
163165
BE: ${{ matrix.be }}
164-
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
166+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
165167
with:
166168
name: libarchive-windows-${{ matrix.be }}-${{ github.sha }}
167169
path: libarchive.zip

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fuzz-seconds: 600
2222
dry-run: false
2323
- name: Upload Crash
24-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
24+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2525
if: failure() && steps.build.outcome == 'success'
2626
with:
2727
name: artifacts

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030

3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
32+
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
3333
with:
3434
languages: ${{ matrix.language }}
3535
queries: +security-and-quality
3636

3737
- name: Autobuild
38-
uses: github/codeql-action/autobuild@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
38+
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
41+
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
4242
with:
4343
category: "/language:${{ matrix.language }}"

.github/workflows/scorecard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: "Checkout code"
32-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333
with:
3434
persist-credentials: false
3535

3636
- name: "Run analysis"
37-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
37+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
3838
with:
3939
results_file: results.sarif
4040
results_format: sarif
@@ -52,14 +52,14 @@ jobs:
5252
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5353
# format to the repository Actions tab.
5454
- name: "Upload artifact"
55-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
55+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5656
with:
5757
name: SARIF file
5858
path: results.sarif
5959
retention-days: 5
6060

6161
# Upload the results to GitHub's code scanning dashboard.
6262
- name: "Upload to code-scanning"
63-
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
63+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
6464
with:
6565
sarif_file: results.sarif

0 commit comments

Comments
 (0)