libavcodec/wmadec.c:322: error: Integer Overflow L2
  ([1, +oo] - 5):unsigned32 by call to `bitstream_read`.

libavcodec/wmadec.c:322:21: Call
320.     max_scale = 0;
321.     if (s->version == 1) {
322.         last_exp  = bitstream_read(&s->bc, 5) + 10;
                         ^
323.         v         = ptab[last_exp];
324.         iv        = iptab[last_exp];

libavcodec/bitstream.h:183:1: Parameter `n`
  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/bitstream.h:194:12: Call
  192.     }
  193. 
  194.     return get_val(bc, n);
                  ^
  195. }
  196. 

libavcodec/bitstream.h:130:1: <LHS trace>
128. }
129. 
130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
     ^
131. {
132. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:130:1: Parameter `bc->bits_left`
    128. }
    129. 
    130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
         ^
    131. {
    132. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:130:1: <RHS trace>
128. }
129. 
130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
     ^
131. {
132. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:130:1: Parameter `n`
    128. }
    129. 
    130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
         ^
    131. {
    132. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:139:5: Binary operation: ([1, +oo] - 5):unsigned32 by call to `bitstream_read` 
    137.     bc->bits <<= n;
    138. #endif
    139.     bc->bits_left -= n;
             ^
    140. 
    141.     return ret;

static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    uint64_t ret = bc->bits & ((UINT64_C(1) << n) - 1);
    bc->bits >>= n;
#else
    uint64_t ret = bc->bits >> (64 - n);
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
    return ret;
}
['static int decode_exp_vlc(WMACodecContext *s, int ch)\n{\n    int last_exp, n, code;\n    const uint16_t *ptr;\n    float v, max_scale;\n    uint32_t *q, *q_end, iv;\n    const float *ptab = pow_tab + 60;\n    const uint32_t *iptab = (const uint32_t *) ptab;\n    ptr       = s->exponent_bands[s->frame_len_bits - s->block_len_bits];\n    q         = (uint32_t *) s->exponents[ch];\n    q_end     = q + s->block_len;\n    max_scale = 0;\n    if (s->version == 1) {\n        last_exp  = bitstream_read(&s->bc, 5) + 10;\n        v         = ptab[last_exp];\n        iv        = iptab[last_exp];\n        max_scale = v;\n        n         = *ptr++;\n        switch (n & 3) do {\n        case 0: *q++ = iv;\n        case 3: *q++ = iv;\n        case 2: *q++ = iv;\n        case 1: *q++ = iv;\n        } while ((n -= 4) > 0);\n    } else\n        last_exp = 36;\n    while (q < q_end) {\n        code = bitstream_read_vlc(&s->bc, s->exp_vlc.table, EXPVLCBITS, EXPMAX);\n        if (code < 0) {\n            av_log(s->avctx, AV_LOG_ERROR, "Exponent vlc invalid\\n");\n            return -1;\n        }\n        last_exp += code - 60;\n        if ((unsigned) last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) {\n            av_log(s->avctx, AV_LOG_ERROR, "Exponent out of range: %d\\n",\n                   last_exp);\n            return -1;\n        }\n        v  = ptab[last_exp];\n        iv = iptab[last_exp];\n        if (v > max_scale)\n            max_scale = v;\n        n = *ptr++;\n        switch (n & 3) do {\n        case 0: *q++ = iv;\n        case 3: *q++ = iv;\n        case 2: *q++ = iv;\n        case 1: *q++ = iv;\n        } while ((n -= 4) > 0);\n    }\n    s->max_exponent[ch] = max_scale;\n    return 0;\n}', 'static inline uint32_t bitstream_read(BitstreamContext *bc, unsigned n)\n{\n    if (!n)\n        return 0;\n    if (n > bc->bits_left) {\n        refill_32(bc);\n        if (bc->bits_left < 32)\n            bc->bits_left = n;\n    }\n    return get_val(bc, n);\n}', 'static inline uint64_t get_val(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    uint64_t ret = bc->bits & ((UINT64_C(1) << n) - 1);\n    bc->bits >>= n;\n#else\n    uint64_t ret = bc->bits >> (64 - n);\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n    return ret;\n}']