Merge pull request #3377 from stoeckmann/7zip_max_bid
CI / FreeBSD (autotools) (push) Failing after 7s
CI / FreeBSD (cmake) (push) Failing after 1s
CI / MacOS (autotools) (push) Canceled after 0s
CI / MacOS (cmake) (push) Canceled after 0s
CI / Ubuntu (autotools, mbedtls) (push) Canceled after 0s
CI / Ubuntu (autotools, nettle) (push) Canceled after 0s
CI / Ubuntu (autotools, openssl) (push) Canceled after 0s
CI / Ubuntu (cmake, mbedtls) (push) Canceled after 0s
CI / Ubuntu (cmake, nettle) (push) Canceled after 0s
CI / Ubuntu (cmake, openssl) (push) Canceled after 0s
CI / Ubuntu-distcheck (push) Canceled after 0s
CI / Windows (cygwin-gcc) (push) Canceled after 0s
CI / Windows (mingw-gcc) (push) Canceled after 0s
CI / Windows (msvc) (push) Canceled after 0s
Lint / Lint (push) Canceled after 0s

7zip: Fix max bidding check
This commit is contained in:
Dustin L. Howett authored and GitHub committed 2026-08-12 18:30:34 -05:00
commit b738b9d38c
1 file changed
+2 -2
@@ -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)