libavcodec/alac.c:341: error: Integer Overflow L2
  ([1, +oo] - [1, 32]):unsigned32 by call to `rice_decompress`.

libavcodec/alac.c:267:24: Call
265.     has_size = bitstream_read_bit(&alac->bc);
266. 
267.     alac->extra_bits = bitstream_read(&alac->bc, 2) << 3;
                            ^
268.     bps = alac->sample_size - alac->extra_bits + channels - 1;
269.     if (bps > 32) {

libavcodec/bitstream.h:186:9: Assignment
  184. {
  185.     if (!n)
  186.         return 0;
               ^
  187. 
  188.     if (n > bc->bits_left) {

libavcodec/alac.c:267:5: Assignment
265.     has_size = bitstream_read_bit(&alac->bc);
266. 
267.     alac->extra_bits = bitstream_read(&alac->bc, 2) << 3;
         ^
268.     bps = alac->sample_size - alac->extra_bits + channels - 1;
269.     if (bps > 32) {

libavcodec/alac.c:268:5: Assignment
266. 
267.     alac->extra_bits = bitstream_read(&alac->bc, 2) << 3;
268.     bps = alac->sample_size - alac->extra_bits + channels - 1;
         ^
269.     if (bps > 32) {
270.         avpriv_report_missing_feature(avctx, "bps %d", bps);

libavcodec/alac.c:341:13: Call
339.         }
340.         for (ch = 0; ch < channels; ch++) {
341.             rice_decompress(alac, alac->predict_error_buffer[ch],
                 ^
342.                             alac->nb_samples, bps,
343.                             rice_history_mult[ch] * alac->rice_history_mult / 4);

libavcodec/alac.c:103:1: Parameter `bps`
  101. }
  102. 
  103. static void rice_decompress(ALACContext *alac, int32_t *output_buffer,
       ^
  104.                             int nb_samples, int bps, int rice_history_mult)
  105. {

libavcodec/alac.c:117:13: Call
  115.         k = av_log2((history >> 9) + 3);
  116.         k = FFMIN(k, alac->rice_limit);
  117.         x = decode_scalar(&alac->bc, k, bps);
                   ^
  118.         x += sign_modifier;
  119.         sign_modifier = 0;

libavcodec/alac.c:81:1: Parameter `bps`
    79. } ALACContext;
    80. 
    81. static inline unsigned int decode_scalar(BitstreamContext *bc, int k, int bps)
        ^
    82. {
    83.     unsigned int x = get_unary_0_9(bc);

libavcodec/alac.c:87:13: Call
    85.     if (x > 8) { /* RICE THRESHOLD */
    86.         /* use alternative encoding */
    87.         x = bitstream_read(bc, bps);
                    ^
    88.     } else if (k != 1) {
    89.         int extrabits = bitstream_peek(bc, k);

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] - [1, 32]):unsigned32 by call to `rice_decompress` 
        137.     bc->bits <<= n;
        138. #endif
        139.     bc->bits_left -= n;
                 ^
        140. 
        141.     return ret;
