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:104:1: Parameter `bc->bits_left`
  102. 
  103. /* Initialize BitstreamContext with buffer size in bytes instead of bits. */
  104. static inline int bitstream_init8(BitstreamContext *bc, const uint8_t *buffer,
       ^
  105.                                   unsigned byte_size)
  106. {

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:215:1: Parameter `n`
  213. /* Return n bits from the buffer, but do not change the buffer state.
  214.  * n has to be in the 0-32 range. */
  215. static inline unsigned bitstream_peek(BitstreamContext *bc, unsigned n)
       ^
  216. {
  217.     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:241:1: Parameter `n`
  239. 
  240. /* Skip n bits in the buffer. */
  241. static inline void bitstream_skip(BitstreamContext *bc, unsigned n)
       ^
  242. {
  243.     if (n <= bc->bits_left)

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

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 `bitstream_skip` 
    235.     bc->bits <<= n;
    236. #endif
    237.     bc->bits_left -= n;
             ^
    238. }
    239. 

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        skip_remaining(bc, bc->bits_left);\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}']