Commit 1a4a4df3 for xz
commit 1a4a4df3669453e9c80235baffa13e4dd1358bc8
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Sun Aug 9 16:11:13 2026 +0300
Tests: test_index: Test lzma_index_memusage(STREAMS_MAX, 1)
diff --git a/tests/test_index.c b/tests/test_index.c
index 44228632..6fa282f8 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -42,6 +42,7 @@ test_lzma_index_memusage(void)
// The maximum number of Streams should be UINT32_MAX in the
// current implementation even though the parameter is lzma_vli.
+ assert_uint(lzma_index_memusage(UINT32_MAX, 1), <, UINT64_MAX / 8);
assert_uint_eq(lzma_index_memusage((lzma_vli)UINT32_MAX + 1, 1),
UINT64_MAX);