libavcodec/motionpixels.c:281: error: Buffer Overrun L3
  Offset: [1, +oo] Size: [0, +oo] by call to `init_vlc_sparse`.

libavcodec/motionpixels.c:265:23: Call
263.     }
264. 
265.     mp->codes_count = get_bits(&gb, 4);
                           ^
266.     if (mp->codes_count == 0)
267.         goto end;

libavcodec/get_bits.h:365:5: Call
  363.     register int tmp;
  364.     OPEN_READER(re, s)
  365.     UPDATE_CACHE(re, s)
           ^
  366.     tmp= SHOW_UBITS(re, s, n);
  367.     LAST_SKIP_BITS(re, s, n)

libavutil/bswap.h:54:1: Parameter `x`
    52. 
    53. #ifndef bswap_32
    54. static av_always_inline av_const uint32_t bswap_32(uint32_t x)
        ^
    55. {
    56.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);

libavutil/bswap.h:56:5: Assignment
    54. static av_always_inline av_const uint32_t bswap_32(uint32_t x)
    55. {
    56.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
            ^
    57.     x= (x>>16) | (x<<16);
    58.     return x;

libavutil/bswap.h:57:5: Assignment
    55. {
    56.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    57.     x= (x>>16) | (x<<16);
            ^
    58.     return x;
    59. }

libavutil/bswap.h:58:5: Assignment
    56.     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
    57.     x= (x>>16) | (x<<16);
    58.     return x;
            ^
    59. }
    60. #endif

libavcodec/get_bits.h:365:5: Assignment
  363.     register int tmp;
  364.     OPEN_READER(re, s)
  365.     UPDATE_CACHE(re, s)
           ^
  366.     tmp= SHOW_UBITS(re, s, n);
  367.     LAST_SKIP_BITS(re, s, n)

libavcodec/get_bits.h:366:5: Assignment
  364.     OPEN_READER(re, s)
  365.     UPDATE_CACHE(re, s)
  366.     tmp= SHOW_UBITS(re, s, n);
           ^
  367.     LAST_SKIP_BITS(re, s, n)
  368.     CLOSE_READER(re, s)

libavcodec/get_bits.h:369:5: Assignment
  367.     LAST_SKIP_BITS(re, s, n)
  368.     CLOSE_READER(re, s)
  369.     return tmp;
           ^
  370. }
  371. 

libavcodec/motionpixels.c:265:5: Assignment
263.     }
264. 
265.     mp->codes_count = get_bits(&gb, 4);
         ^
266.     if (mp->codes_count == 0)
267.         goto end;

libavcodec/motionpixels.c:273:5: Call
271.         mp->changes_map[0] = 1;
272.     }
273.     mp_read_codes_table(mp, &gb);
         ^
274. 
275.     sz = get_bits(&gb, 18);

libavcodec/motionpixels.c:115:1: Parameter `mp->codes_count`
  113. }
  114. 
  115. static void mp_read_codes_table(MotionPixelsContext *mp, GetBitContext *gb)
       ^
  116. {
  117.     if (mp->codes_count == 1) {

libavcodec/motionpixels.c:281:5: Call
279.         goto end;
280. 
281.     init_vlc(&mp->vlc, mp->max_codes_bits, mp->codes_count, &mp->codes[0].size, sizeof(HuffCode), 1, &mp->codes[0].code, sizeof(HuffCode), 4, 0);
         ^
282.     mp_decode_frame_helper(mp, &gb);
283.     free_vlc(&mp->vlc);

libavcodec/bitstream.c:272:1: Parameter `nb_codes`
  270.    with av_free_static(), 0 if free_vlc() will be used.
  271. */
  272. int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
       ^
  273.              const void *bits, int bits_wrap, int bits_size,
  274.              const void *codes, int codes_wrap, int codes_size,

libavcodec/bitstream.c:278:17: Array declaration
  276.              int flags)
  277. {
  278.     VLCcode buf[nb_codes];
                       ^
  279.     int i, j;
  280. 

libavcodec/bitstream.c:322:9: Call
  320.     nb_codes = j;
  321. 
  322.     if (build_table(vlc, nb_bits, nb_codes, buf, flags) < 0) {
               ^
  323.         av_freep(&vlc->table);
  324.         return -1;

libavcodec/bitstream.c:155:1: <Offset trace>
153.  *                       Sorting by VLCcode.code is sufficient, though not necessary.
154.  */
155. static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
     ^
156.                        VLCcode *codes, int flags)
157. {

libavcodec/bitstream.c:155:1: Parameter `nb_codes`
    153.  *                       Sorting by VLCcode.code is sufficient, though not necessary.
    154.  */
    155. static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
         ^
    156.                        VLCcode *codes, int flags)
    157. {

libavcodec/bitstream.c:155:1: <Length trace>
153.  *                       Sorting by VLCcode.code is sufficient, though not necessary.
154.  */
155. static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
     ^
156.                        VLCcode *codes, int flags)
157. {

libavcodec/bitstream.c:155:1: Parameter `*codes`
    153.  *                       Sorting by VLCcode.code is sufficient, though not necessary.
    154.  */
    155. static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
         ^
    156.                        VLCcode *codes, int flags)
    157. {

libavcodec/bitstream.c:216:21: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `init_vlc_sparse` 
    214.             codes[i].code = code << table_nb_bits;
    215.             for (k = i+1; k < nb_codes; k++) {
    216.                 n = codes[k].bits - table_nb_bits;
                             ^
    217.                 if (n <= 0)
    218.                     break;
