X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdecompress_common.c;h=49cd5ba0f083afa64248246080830fd93dfbb589;hb=b53f64c7034f18da022cdaa646c70f20033940c7;hp=b08a3b4b130ed4d829297695bacde916a1686bd5;hpb=7251c7d0afac3b738dda1c4f45e6d3d3090f2622;p=wimlib diff --git a/src/decompress_common.c b/src/decompress_common.c index b08a3b4b..49cd5ba0 100644 --- a/src/decompress_common.c +++ b/src/decompress_common.c @@ -14,7 +14,6 @@ # include "config.h" #endif -#include "wimlib/assert.h" #include "wimlib/decompress_common.h" #include @@ -151,14 +150,6 @@ make_huffman_decode_table(u16 decode_table[const restrict], const unsigned entries_per_xmm = sizeof(__m128i) / sizeof(decode_table[0]); #endif - /* Check parameters if assertions are enabled. */ - wimlib_assert2((uintptr_t)decode_table % DECODE_TABLE_ALIGNMENT == 0); - wimlib_assert2(num_syms <= DECODE_TABLE_MAX_SYMBOLS); - wimlib_assert2(table_bits <= DECODE_TABLE_MAX_TABLE_BITS); - wimlib_assert2(max_codeword_len <= DECODE_TABLE_MAX_CODEWORD_LEN); - for (unsigned sym = 0; sym < num_syms; sym++) - wimlib_assert2(lens[sym] <= max_codeword_len); - /* Count how many symbols have each possible codeword length. * Note that a length of 0 indicates the corresponding symbol is not * used in the code and therefore does not have a codeword. */