From 1a4a4df3669453e9c80235baffa13e4dd1358bc8 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 9 Aug 2026 16:11:13 +0300 Subject: [PATCH] Tests: test_index: Test lzma_index_memusage(STREAMS_MAX, 1) --- tests/test_index.c | 1 + 1 file changed, 1 insertion(+) 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);