diff options
author | Martin Matuska <mm@FreeBSD.org> | 2023-07-29 18:13:53 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2023-07-29 18:19:08 +0000 |
commit | 70968ea087e76e4f6101a83ccf2fa0b0bf686229 (patch) | |
tree | 7d975f9f9b3717e8a222f7a338cbc1cd840a7f54 /libarchive/archive_write_add_filter_zstd.c | |
parent | 14b646f7c3f709cd0de2d59db3691273bc8d6d16 (diff) | |
download | src-70968ea087e76e4f6101a83ccf2fa0b0bf686229.tar.gz src-70968ea087e76e4f6101a83ccf2fa0b0bf686229.zip |
Update vendor/libarchive to libarchive/libarchive@0e1e2b926
Important bugfixes (relevant to FreeBSD):
ISSUE #1934: stack buffer overflow in cpio verbose mode
ISSUE #1935: SEGV in cpio verbose mode
PR #1731 tar: respect --strip-components and -s patterns in cru modes
Obtained from: libarchive
Libarchive commit: 0e1e2b926aad81512a79a05c791b9dc7e0fa8715
Libarchive tag: v3.7.1
Diffstat (limited to 'libarchive/archive_write_add_filter_zstd.c')
-rw-r--r-- | libarchive/archive_write_add_filter_zstd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_write_add_filter_zstd.c b/libarchive/archive_write_add_filter_zstd.c index f32258b460eb..584cfb668f05 100644 --- a/libarchive/archive_write_add_filter_zstd.c +++ b/libarchive/archive_write_add_filter_zstd.c @@ -214,7 +214,7 @@ archive_compressor_zstd_options(struct archive_write_filter *f, const char *key, if (level < minimum || level > maximum) { return (ARCHIVE_WARN); } - data->compression_level = level; + data->compression_level = (int)level; return (ARCHIVE_OK); } else if (strcmp(key, "threads") == 0) { intmax_t threads; @@ -224,7 +224,7 @@ archive_compressor_zstd_options(struct archive_write_filter *f, const char *key, if (threads < 0) { return (ARCHIVE_WARN); } - data->threads = threads; + data->threads = (int)threads; return (ARCHIVE_OK); #if HAVE_ZSTD_H && HAVE_LIBZSTD_COMPRESSOR } else if (strcmp(key, "frame-per-file") == 0) { |