From 57b9a145a527f0716822615e5ed536d33aebd3fc Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 20 Jun 2008 17:16:32 +0300 Subject: [PATCH] Fix test_filter_flags to match the new restriction of lc+lp. --- tests/test_filter_flags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c index 8df6da6c..dde01381 100644 --- a/tests/test_filter_flags.c +++ b/tests/test_filter_flags.c @@ -258,6 +258,9 @@ test_lzma(void) lp <= LZMA_LITERAL_POS_BITS_MAX; ++lp) { for (uint32_t pb = LZMA_POS_BITS_MIN; pb <= LZMA_POS_BITS_MAX; ++pb) { + if (lc + lp > LZMA_LITERAL_BITS_MAX) + continue; + options.literal_context_bits = lc; options.literal_pos_bits = lp; options.pos_bits = pb;