From 490ca91153c24812bcef1f657220af1a4525eeb1 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 15 Aug 2026 19:50:05 +0300 Subject: [PATCH] Tests: Add test file bad-1-index-huge-uncomp.xz --- tests/files/README | 5 +++++ tests/files/bad-1-index-huge-uncomp.xz | Bin 0 -> 72 bytes 2 files changed, 5 insertions(+) create mode 100644 tests/files/bad-1-index-huge-uncomp.xz diff --git a/tests/files/README b/tests/files/README index b89c494c..79763c11 100644 --- a/tests/files/README +++ b/tests/files/README @@ -213,6 +213,11 @@ xz -lvv in XZ Utils 5.0.3 and earlier. It was fixed in the commit c0297445064951807803457dca1611b3c47e7f0f. + bad-1-index-huge-uncomp.xz has Index where Uncompressed Size is + UINT64_MAX / 3 + 1 bytes. With XZ Utils 5.8.3 and older, passing + this file thrice to xz --list produces incorrect totals due to + integer overflow. + bad-2-index-1.xz has wrong Unpadded Sizes in Index. bad-2-index-2.xz has wrong Uncompressed Sizes in Index. diff --git a/tests/files/bad-1-index-huge-uncomp.xz b/tests/files/bad-1-index-huge-uncomp.xz new file mode 100644 index 0000000000000000000000000000000000000000..fb9c1852be7a0726f4e9f74919d3ce957aa7ab22 GIT binary patch literal 72 zcmexsUKJ6=z`*cd=%ynRgCZjbkbQ$+S(uT5)gv`0C!dRnfh|10C?`dci-Cbr;o7RJ WU>KTtqRF54a+o