libavcodec/wma.c:484: error: Integer Overflow L2
  ([0, 1] - 1):unsigned32.

libavcodec/wma.c:484:20: <LHS trace>
482.             /** normal code */
483.             offset += run_table[code];
484.             sign = get_bits1(gb) - 1;
                        ^
485.             iptr[offset & coef_mask] = ilvl[code] ^ sign<<31;
486.         } else if (code == 1) {

libavcodec/wma.c:484:20: Call
482.             /** normal code */
483.             offset += run_table[code];
484.             sign = get_bits1(gb) - 1;
                        ^
485.             iptr[offset & coef_mask] = ilvl[code] ^ sign<<31;
486.         } else if (code == 1) {

libavcodec/get_bits.h:393:1: Parameter `s->index`
  391. }
  392. 
  393. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;

libavcodec/get_bits.h:395:5: Assignment
  393. static inline unsigned int get_bits1(GetBitContext *s){
  394. #ifdef ALT_BITSTREAM_READER
  395.     unsigned int index= s->index;
           ^
  396.     uint8_t result= s->buffer[ index>>3 ];
  397. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:398:5: Assignment
  396.     uint8_t result= s->buffer[ index>>3 ];
  397. #ifdef ALT_BITSTREAM_READER_LE
  398.     result>>= (index&0x07);
           ^
  399.     result&= 1;
  400. #else

libavcodec/get_bits.h:399:5: Assignment
  397. #ifdef ALT_BITSTREAM_READER_LE
  398.     result>>= (index&0x07);
  399.     result&= 1;
           ^
  400. #else
  401.     result<<= (index&0x07);

libavcodec/get_bits.h:407:5: Assignment
  405.     s->index= index;
  406. 
  407.     return result;
           ^
  408. #else
  409.     return get_bits(s, 1);

libavcodec/wma.c:484:13: Binary operation: ([0, 1] - 1):unsigned32
482.             /** normal code */
483.             offset += run_table[code];
484.             sign = get_bits1(gb) - 1;
                 ^
485.             iptr[offset & coef_mask] = ilvl[code] ^ sign<<31;
486.         } else if (code == 1) {

int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb,
                            VLC *vlc,
                            const float *level_table, const uint16_t *run_table,
                            int version, WMACoef *ptr, int offset,
                            int num_coefs, int block_len, int frame_len_bits,
                            int coef_nb_bits)
{
    int code, level, sign;
    const uint32_t *ilvl = (const uint32_t*)level_table;
    uint32_t *iptr = (uint32_t*)ptr;
    const unsigned int coef_mask = block_len - 1;
    for (; offset < num_coefs; offset++) {
        code = get_vlc2(gb, vlc->table, VLCBITS, VLCMAX);
        if (code > 1) {
            offset += run_table[code];
            sign = get_bits1(gb) - 1;
            iptr[offset & coef_mask] = ilvl[code] ^ sign<<31;
        } else if (code == 1) {
            break;
        } else {
            if (!version) {
                level = get_bits(gb, coef_nb_bits);
                offset += get_bits(gb, frame_len_bits);
            } else {
                level = ff_wma_get_large_val(gb);
                if (get_bits1(gb)) {
                    if (get_bits1(gb)) {
                        if (get_bits1(gb)) {
                            av_log(avctx,AV_LOG_ERROR,
                                "broken escape sequence\n");
                            return -1;
                        } else
                            offset += get_bits(gb, frame_len_bits) + 4;
                    } else
                        offset += get_bits(gb, 2) + 1;
                }
            }
            sign = get_bits1(gb) - 1;
            ptr[offset & coef_mask] = (level^sign) - sign;
        }
    }
    if (offset > num_coefs) {
        av_log(avctx, AV_LOG_ERROR, "overflow in spectral RLE, ignoring\n");
        return -1;
    }
    return 0;
}
['int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb,\n                            VLC *vlc,\n                            const float *level_table, const uint16_t *run_table,\n                            int version, WMACoef *ptr, int offset,\n                            int num_coefs, int block_len, int frame_len_bits,\n                            int coef_nb_bits)\n{\n    int code, level, sign;\n    const uint32_t *ilvl = (const uint32_t*)level_table;\n    uint32_t *iptr = (uint32_t*)ptr;\n    const unsigned int coef_mask = block_len - 1;\n    for (; offset < num_coefs; offset++) {\n        code = get_vlc2(gb, vlc->table, VLCBITS, VLCMAX);\n        if (code > 1) {\n            offset += run_table[code];\n            sign = get_bits1(gb) - 1;\n            iptr[offset & coef_mask] = ilvl[code] ^ sign<<31;\n        } else if (code == 1) {\n            break;\n        } else {\n            if (!version) {\n                level = get_bits(gb, coef_nb_bits);\n                offset += get_bits(gb, frame_len_bits);\n            } else {\n                level = ff_wma_get_large_val(gb);\n                if (get_bits1(gb)) {\n                    if (get_bits1(gb)) {\n                        if (get_bits1(gb)) {\n                            av_log(avctx,AV_LOG_ERROR,\n                                "broken escape sequence\\n");\n                            return -1;\n                        } else\n                            offset += get_bits(gb, frame_len_bits) + 4;\n                    } else\n                        offset += get_bits(gb, 2) + 1;\n                }\n            }\n            sign = get_bits1(gb) - 1;\n            ptr[offset & coef_mask] = (level^sign) - sign;\n        }\n    }\n    if (offset > num_coefs) {\n        av_log(avctx, AV_LOG_ERROR, "overflow in spectral RLE, ignoring\\n");\n        return -1;\n    }\n    return 0;\n}', 'static inline unsigned int get_bits1(GetBitContext *s){\n#ifdef ALT_BITSTREAM_READER\n    unsigned int index= s->index;\n    uint8_t result= s->buffer[ index>>3 ];\n#ifdef ALT_BITSTREAM_READER_LE\n    result>>= (index&0x07);\n    result&= 1;\n#else\n    result<<= (index&0x07);\n    result>>= 8 - 1;\n#endif\n    index++;\n    s->index= index;\n    return result;\n#else\n    return get_bits(s, 1);\n#endif\n}']