From ea57b9aa2c3e1cdb667f8dd698314b1c36047018 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 16 Sep 2022 17:08:53 +0300 Subject: Tests: Add a test file for lzma_index_append() integer overflow bug. This test fails before commit 18d7facd3802b55c287581405c4d49c98708c136. test_files.sh now runs xz -l for bad-3-index-uncomp-overflow.xz because only then the previously-buggy code path gets tested. Normal decompression doesn't use lzma_index_append() at all. Instead, lzma_index_hash functions are used and those already did the overflow check. --- tests/files/bad-3-index-uncomp-overflow.xz | Bin 0 -> 132 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/files/bad-3-index-uncomp-overflow.xz (limited to 'tests/files/bad-3-index-uncomp-overflow.xz') diff --git a/tests/files/bad-3-index-uncomp-overflow.xz b/tests/files/bad-3-index-uncomp-overflow.xz new file mode 100644 index 00000000..e1440ec6 Binary files /dev/null and b/tests/files/bad-3-index-uncomp-overflow.xz differ -- cgit v1.2.3