From: Tobias Stoeckmann Date: Tue, 3 Jun 2025 19:57:05 +0000 (+0200) Subject: xar: End with entry offset, not archive offset X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa85c7eaae4309febdd6095898d78b24d1c93cf2;p=thirdparty%2Flibarchive.git xar: End with entry offset, not archive offset If xar_read_data has no further data, set offset to end of entry, not to total size of parsed archive so far. Signed-off-by: Tobias Stoeckmann --- diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c index b4e1192ef..36b5ab3ae 100644 --- a/libarchive/archive_read_support_format_xar.c +++ b/libarchive/archive_read_support_format_xar.c @@ -930,7 +930,7 @@ xar_read_data(struct archive_read *a, abort_read_data: *buff = NULL; *size = 0; - *offset = xar->total; + *offset = (int64_t)xar->entry_total; return (r); }