From 006126aca97b5f5b6bacd549787b18c1e9ce1908 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 20 Jul 2026 20:00:06 +0300 Subject: [PATCH] Revert "liblzma: Add internal constant INDEX_RECORDS_MAX" This reverts commit 9ff4dadca96a5ac3cb478759a4fdb8663be114eb. The INDEX_RECORDS_MAX constant isn't needed after the previous commit. --- src/liblzma/common/index.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/liblzma/common/index.h b/src/liblzma/common/index.h index 6fe4a52c..007e1188 100644 --- a/src/liblzma/common/index.h +++ b/src/liblzma/common/index.h @@ -26,12 +26,6 @@ /// Maximum Unpadded Size #define UNPADDED_SIZE_MAX (LZMA_VLI_MAX & ~LZMA_VLI_C(3)) -/// Maximum number of Records if all sizes fit in one byte: -/// Index Indicator (1) + Number of Records (5) + List of Records + CRC32 (4) -/// Larger value isn't possible because then the Index would grow larger than -/// what Backward Size in Stream Footer can encode (2^34 bytes). -#define INDEX_RECORDS_MAX ((LZMA_BACKWARD_SIZE_MAX - 1 - 5 - 4) / 2) - /// Index Indicator based on xz specification #define INDEX_INDICATOR 0