X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxpress_decompress.c;h=16a577e8fde4d46016fccff80d29e2f98dd807dd;hp=623ea187fef32ececc0669afdb247ca51e162726;hb=4ee103c6e2a2988e1fb358bfa2dc38dcb621505a;hpb=ff4f09a9848beab16d3d72f38a158848f24315ea;ds=sidebyside diff --git a/src/xpress_decompress.c b/src/xpress_decompress.c index 623ea187..16a577e8 100644 --- a/src/xpress_decompress.c +++ b/src/xpress_decompress.c @@ -82,6 +82,8 @@ struct xpress_decompressor { XPRESS_TABLEBITS, XPRESS_MAX_CODEWORD_LEN); u8 lens[XPRESS_NUM_SYMBOLS]; }; + DECODE_TABLE_WORKING_SPACE(working_space, XPRESS_NUM_SYMBOLS, + XPRESS_MAX_CODEWORD_LEN); } _aligned_attribute(DECODE_TABLE_ALIGNMENT); static int @@ -107,7 +109,8 @@ xpress_decompress(const void *restrict compressed_data, size_t compressed_size, /* Build a decoding table for the Huffman code. */ if (make_huffman_decode_table(d->decode_table, XPRESS_NUM_SYMBOLS, XPRESS_TABLEBITS, d->lens, - XPRESS_MAX_CODEWORD_LEN)) + XPRESS_MAX_CODEWORD_LEN, + d->working_space)) return -1; /* Decode the matches and literals. */