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

libavcodec/cfhd.c:522:1: Parameter `s->bc.bits_left`
520.     }                                                                   \
521. 
522. static int read_highpass_coeffs(CFHDContext *s, GetByteContext *gb,
     ^
523.                                 int16_t *coeff_data)
524. {

libavcodec/cfhd.c:547:16: Call
545.            s->channel_num, s->level, s->codebook, expected);
546. 
547.     if ((ret = bitstream_init8(&s->bc, gb->buffer,
                    ^
548.                                bytestream2_get_bytes_left(gb))) < 0)
549.         return ret;

libavcodec/bitstream.h:103:1: Parameter `bc->bits_left`
  101. 
  102. /* Initialize BitstreamContext with buffer size in bytes instead of bits. */
  103. static inline int bitstream_init8(BitstreamContext *bc, const uint8_t *buffer,
       ^
  104.                                   unsigned byte_size)
  105. {

libavcodec/cfhd.c:553:9: Call
551.         DECODE_SUBBAND_COEFFS(table_9_rl_vlc, level == 64)
552.     } else {
553.         DECODE_SUBBAND_COEFFS(table_18_rl_vlc, level == 255 && run == 2)
             ^
554.     }
555. 

libavcodec/bitstream.h:214:1: Parameter `n`
  212. /* Return n bits from the buffer, but do not change the buffer state.
  213.  * n has to be in the 0-32 range. */
  214. static inline unsigned bitstream_peek(BitstreamContext *bc, unsigned n)
       ^
  215. {
  216.     if (n > bc->bits_left)

libavcodec/cfhd.c:553:9: Call
551.         DECODE_SUBBAND_COEFFS(table_9_rl_vlc, level == 64)
552.     } else {
553.         DECODE_SUBBAND_COEFFS(table_18_rl_vlc, level == 255 && run == 2)
             ^
554.     }
555. 

libavcodec/bitstream.h:240:1: Parameter `n`
  238. 
  239. /* Skip n bits in the buffer. */
  240. static inline void bitstream_skip(BitstreamContext *bc, unsigned n)
       ^
  241. {
  242.     if (n < bc->bits_left)

libavcodec/bitstream.h:243:9: Call
  241. {
  242.     if (n < bc->bits_left)
  243.         skip_remaining(bc, n);
               ^
  244.     else {
  245.         n -= bc->bits_left;

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

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

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

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

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

static inline void skip_remaining(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    bc->bits >>= n;
#else
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
}
['static int read_highpass_coeffs(CFHDContext *s, GetByteContext *gb,\n                                int16_t *coeff_data)\n{\n    int i, ret;\n    int highpass_height       = s->plane[s->channel_num].band[s->level][s->subband_num].height;\n    int highpass_width        = s->plane[s->channel_num].band[s->level][s->subband_num].width;\n    int highpass_a_width      = s->plane[s->channel_num].band[s->level][s->subband_num].a_width;\n    int highpass_a_height     = s->plane[s->channel_num].band[s->level][s->subband_num].a_height;\n    ptrdiff_t highpass_stride = s->plane[s->channel_num].band[s->level][s->subband_num].stride;\n    int expected   = highpass_height   * highpass_stride;\n    int a_expected = highpass_a_height * highpass_a_width;\n    int count = 0;\n    unsigned bytes;\n    if (highpass_height > highpass_a_height ||\n        highpass_width  > highpass_a_width  ||\n        a_expected      < expected) {\n        av_log(s->avctx, AV_LOG_ERROR, "Too many highpass coefficients\\n");\n        return AVERROR_INVALIDDATA;\n    }\n    av_log(s->avctx, AV_LOG_DEBUG,\n           "Start subband coeffs plane %i level %i codebook %i expected %i\\n",\n           s->channel_num, s->level, s->codebook, expected);\n    if ((ret = bitstream_init8(&s->bc, gb->buffer,\n                               bytestream2_get_bytes_left(gb))) < 0)\n        return ret;\n    if (!s->codebook) {\n        DECODE_SUBBAND_COEFFS(table_9_rl_vlc, level == 64)\n    } else {\n        DECODE_SUBBAND_COEFFS(table_18_rl_vlc, level == 255 && run == 2)\n    }\n    bytes = FFALIGN(AV_CEIL_RSHIFT(bitstream_tell(&s->bc), 3), 4);\n    if (bytes > bytestream2_get_bytes_left(gb)) {\n        av_log(s->avctx, AV_LOG_ERROR, "Bitstream overread error\\n");\n        return AVERROR_INVALIDDATA;\n    } else\n        bytestream2_seek(gb, bytes, SEEK_CUR);\n    av_log(s->avctx, AV_LOG_DEBUG, "End subband coeffs %i extra %i\\n",\n           count, count - expected);\n    s->codebook = 0;\n    if (highpass_height & 1) {\n        int16_t *last_line = &coeff_data[expected];\n        memcpy(last_line, &last_line[-highpass_stride],\n               highpass_stride * sizeof(*coeff_data));\n    }\n    return 0;\n}', 'static inline int bitstream_init8(BitstreamContext *bc, const uint8_t *buffer,\n                                  unsigned byte_size)\n{\n    if (byte_size > INT_MAX / 8)\n        return AVERROR_INVALIDDATA;\n    return bitstream_init(bc, buffer, byte_size * 8);\n}', 'static inline unsigned bitstream_peek(BitstreamContext *bc, unsigned n)\n{\n    if (n > bc->bits_left)\n        refill_32(bc);\n    return show_val(bc, n);\n}', 'static inline void bitstream_skip(BitstreamContext *bc, unsigned n)\n{\n    if (n < bc->bits_left)\n        skip_remaining(bc, n);\n    else {\n        n -= bc->bits_left;\n        bc->bits      = 0;\n        bc->bits_left = 0;\n        if (n >= 64) {\n            unsigned skip = n / 8;\n            n -= skip * 8;\n            bc->ptr += skip;\n        }\n        refill_64(bc);\n        if (n)\n            skip_remaining(bc, n);\n    }\n}', 'static inline void skip_remaining(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    bc->bits >>= n;\n#else\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n}']