From 73412046b7c39864e761311fc1f996b817a514ef Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 10 Aug 2026 19:11:27 +0200 Subject: [PATCH] lrzip: Return matching bits in bidding Actually follow the bidder comment and return amount of bits. Has the nice advantage of removing the int/ssize_t handling, even though it was safe anyway. Signed-off-by: Tobias Stoeckmann --- libarchive/archive_read_support_filter_lrzip.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libarchive/archive_read_support_filter_lrzip.c b/libarchive/archive_read_support_filter_lrzip.c index a1d45d77..65df9abe 100644 --- a/libarchive/archive_read_support_filter_lrzip.c +++ b/libarchive/archive_read_support_filter_lrzip.c @@ -79,14 +79,12 @@ lrzip_bidder_bid(struct archive_read_filter_bidder *b, struct archive_read_filter *f) { const unsigned char *p; - ssize_t len; int i; (void)b; /* UNUSED */ /* Start by looking at the first six bytes of the header, which * is all fixed layout. */ - len = 6; - p = __archive_read_filter_ahead(f, len, NULL); + p = __archive_read_filter_ahead(f, 6, NULL); if (p == NULL) return (0); @@ -101,7 +99,7 @@ lrzip_bidder_bid(struct archive_read_filter_bidder *b, if ((i < 6) || (i > 10)) return 0; - return (int)len; + return (48); } static int