libavcodec/hqx.c:259: error: Integer Overflow L2
  ([0, +oo] - 9):unsigned32 by call to `decode_block`.

libavcodec/hqx.c:253:25: Call
251.         flag = 0;
252. 
253.     quants = hqx_quants[bitstream_read(bc, 4)];
                             ^
254. 
255.     for (i = 0; i < 12; i++) {

libavcodec/bitstream.h:183:1: Parameter `bc->bits_left`
  181. 
  182. /* Return n bits from the buffer. n has to be in the 0-32 range. */
  183. static inline uint32_t bitstream_read(BitstreamContext *bc, unsigned n)
       ^
  184. {
  185.     if (!n)

libavcodec/hqx.c:259:15: Call
257.         if (i == 0 || i == 4 || i == 8)
258.             last_dc = 0;
259.         ret = decode_block(bc, &ctx->dc_vlc[vlc_index], quants,
                   ^
260.                            ctx->dcb, slice->block[i], &last_dc);
261.         if (ret < 0)

libavcodec/hqx.c:114:1: Parameter `bc->bits_left`
  112. }
  113. 
  114. static int decode_block(BitstreamContext *bc, VLC *vlc,
       ^
  115.                         const int *quants, int dcb,
  116.                         int16_t block[64], int *last_dc)

libavcodec/hqx.c:123:10: Call
  121. 
  122.     memset(block, 0, 64 * sizeof(*block));
  123.     dc = bitstream_read_vlc(bc, vlc->table, HQX_DC_VLC_BITS, 2);
                ^
  124.     if (dc < 0)
  125.         return AVERROR_INVALIDDATA;

libavcodec/bitstream.h:313:1: Parameter `bits`
    311.  * If the VLC code is invalid and max_depth > 1, then the number of bits removed
    312.  * is undefined. */
    313. static inline int bitstream_read_vlc(BitstreamContext *bc, VLC_TYPE (*table)[2],
         ^
    314.                                      int bits, int max_depth)
    315. {

libavcodec/bitstream.h:322:9: Call
    320. 
    321.     if (max_depth > 1 && n < 0) {
    322.         skip_remaining(bc, bits);
                 ^
    323.         code = set_idx(bc, code, &n, &nb_bits, table);
    324.         if (max_depth > 2 && n < 0) {

libavcodec/bitstream.h:230:1: <LHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `bc->bits_left`
      228. }
      229. 
      230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
           ^
      231. {
      232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: <RHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `n`
      228. }
      229. 
      230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
           ^
      231. {
      232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:237:5: Binary operation: ([0, +oo] - 9):unsigned32 by call to `decode_block` 
      235.     bc->bits <<= n;
      236. #endif
      237.     bc->bits_left -= n;
               ^
      238. }
      239. 
