};
/* Read a Huffman-encoded symbol using the precode. */
-static inline u16
+static inline unsigned
read_huffsym_using_precode(struct input_bitstream *istream,
const u16 precode_decode_table[])
{
}
/* Read a Huffman-encoded symbol using the main code. */
-static inline u16
+static inline unsigned
read_huffsym_using_maincode(struct input_bitstream *istream,
const struct lzx_tables *tables)
{
}
/* Read a Huffman-encoded symbol using the length code. */
-static inline u16
+static inline unsigned
read_huffsym_using_lencode(struct input_bitstream *istream,
const struct lzx_tables *tables)
{
}
/* Read a Huffman-encoded symbol using the aligned offset code. */
-static inline u16
+static inline unsigned
read_huffsym_using_alignedcode(struct input_bitstream *istream,
const struct lzx_tables *tables)
{
run_len = 4 + bitstream_read_bits(istream, 1);
presym = read_huffsym_using_precode(istream,
precode_decode_table);
+ if (unlikely(presym > 17))
+ return -1;
len = *len_ptr - presym;
if ((s8)len < 0)
len += 17;