From daf210f18af4d7a15c606feb839302e75599b2c8 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Wed, 12 Aug 2026 20:42:29 +0200 Subject: [PATCH] 7zip: Fix max bidding check The 7zip bidder can return 48, so maximum check of 32 is too small. Signed-off-by: Tobias Stoeckmann --- libarchive/archive_read_support_format_7zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/archive_read_support_format_7zip.c b/libarchive/archive_read_support_format_7zip.c index fd83b060..5f5df59d 100644 --- a/libarchive/archive_read_support_format_7zip.c +++ b/libarchive/archive_read_support_format_7zip.c @@ -598,9 +598,9 @@ archive_read_format_7zip_bid(struct archive_read *a, int best_bid) { int64_t data_offset; - /* If someone has already bid more than 32, then avoid + /* If someone has already bid more than 48, then avoid trashing the look-ahead buffers with a seek. */ - if (best_bid > 32) + if (best_bid > 48) return (-1); if (get_data_offset(a, &data_offset, 0) < 0)