libavcodec/ra144.c:397: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 393 could be null and is dereferenced by call to `get_bits()` at line 397, column 44.

libavcodec/ra144.c:376:1: start of procedure ra144_decode_frame()
374. 
375. /* Uncompress one block (20 bytes -> 160*2 bytes) */
376. static int ra144_decode_frame(AVCodecContext * avctx,
     ^
377.             void *vdata, int *data_size,
378.             const uint8_t * buf, int buf_size)

libavcodec/ra144.c:380:5: 
378.             const uint8_t * buf, int buf_size)
379. {
380.     static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
         ^
381.     unsigned int a, b, c;
382.     int i;

libavcodec/ra144.c:384:5: 
382.     int i;
383.     signed short *shptr;
384.     int16_t *data = vdata;
         ^
385.     unsigned int val;
386. 

libavcodec/ra144.c:387:5: 
385.     unsigned int val;
386. 
387.     Real144_internal *glob = avctx->priv_data;
         ^
388.     GetBitContext gb;
389. 

libavcodec/ra144.c:390:8: Taking false branch
388.     GetBitContext gb;
389. 
390.     if(buf_size == 0)
            ^
391.         return 0;
392. 

libavcodec/ra144.c:393:5: 
391.         return 0;
392. 
393.     init_get_bits(&gb, buf, 20 * 8);
         ^
394. 
395.     for (i=0; i<10; i++)

libavcodec/bitstream.h:758:1: start of procedure init_get_bits()
  756.  * @param bit_size the size of the buffer in bits
  757.  */
  758. static inline void init_get_bits(GetBitContext *s,
       ^
  759.                    const uint8_t *buffer, int bit_size)
  760. {

libavcodec/bitstream.h:761:5: 
  759.                    const uint8_t *buffer, int bit_size)
  760. {
  761.     int buffer_size= (bit_size+7)>>3;
           ^
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;

libavcodec/bitstream.h:762:8: Taking true branch
  760. {
  761.     int buffer_size= (bit_size+7)>>3;
  762.     if(buffer_size < 0 || bit_size < 0) {
              ^
  763.         buffer_size = bit_size = 0;
  764.         buffer = NULL;

libavcodec/bitstream.h:763:9: 
  761.     int buffer_size= (bit_size+7)>>3;
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;
               ^
  764.         buffer = NULL;
  765.     }

libavcodec/bitstream.h:764:9: 
  762.     if(buffer_size < 0 || bit_size < 0) {
  763.         buffer_size = bit_size = 0;
  764.         buffer = NULL;
               ^
  765.     }
  766. 

libavcodec/bitstream.h:767:5: 
  765.     }
  766. 
  767.     s->buffer= buffer;
           ^
  768.     s->size_in_bits= bit_size;
  769.     s->buffer_end= buffer + buffer_size;

libavcodec/bitstream.h:768:5: 
  766. 
  767.     s->buffer= buffer;
  768.     s->size_in_bits= bit_size;
           ^
  769.     s->buffer_end= buffer + buffer_size;
  770. #ifdef ALT_BITSTREAM_READER

libavcodec/bitstream.h:769:5: 
  767.     s->buffer= buffer;
  768.     s->size_in_bits= bit_size;
  769.     s->buffer_end= buffer + buffer_size;
           ^
  770. #ifdef ALT_BITSTREAM_READER
  771.     s->index=0;

libavcodec/bitstream.h:771:5: 
  769.     s->buffer_end= buffer + buffer_size;
  770. #ifdef ALT_BITSTREAM_READER
  771.     s->index=0;
           ^
  772. #elif defined LIBMPEG2_BITSTREAM_READER
  773.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/bitstream.h:781:1: return from a call to init_get_bits
  779.     skip_bits_long(s, 0);
  780. #endif
  781. }
       ^
  782. 
  783. static inline void align_get_bits(GetBitContext *s)

libavcodec/ra144.c:395:10: 
393.     init_get_bits(&gb, buf, 20 * 8);
394. 
395.     for (i=0; i<10; i++)
              ^
396.         // "<< 1"? Doesn't this make one value out of two of the table useless?
397.         glob->swapbuf1[i] = decodetable[i][get_bits(&gb, sizes[i]) << 1];

libavcodec/ra144.c:395:15: Loop condition is true. Entering loop body
393.     init_get_bits(&gb, buf, 20 * 8);
394. 
395.     for (i=0; i<10; i++)
                   ^
396.         // "<< 1"? Doesn't this make one value out of two of the table useless?
397.         glob->swapbuf1[i] = decodetable[i][get_bits(&gb, sizes[i]) << 1];

libavcodec/ra144.c:397:9: 
395.     for (i=0; i<10; i++)
396.         // "<< 1"? Doesn't this make one value out of two of the table useless?
397.         glob->swapbuf1[i] = decodetable[i][get_bits(&gb, sizes[i]) << 1];
             ^
398. 
399.     do_voice(glob->swapbuf1, glob->swapbuf2);

libavcodec/bitstream.h:655:1: start of procedure get_bits()
  653.  * Note, the alt bitstream reader can read up to 25 bits, but the libmpeg2 reader can't
  654.  */
  655. static inline unsigned int get_bits(GetBitContext *s, int n){
       ^
  656.     register int tmp;
  657.     OPEN_READER(re, s)

libavcodec/bitstream.h:657:5: 
  655. static inline unsigned int get_bits(GetBitContext *s, int n){
  656.     register int tmp;
  657.     OPEN_READER(re, s)
           ^
  658.     UPDATE_CACHE(re, s)
  659.     tmp= SHOW_UBITS(re, s, n);

libavcodec/bitstream.h:658:5: 
  656.     register int tmp;
  657.     OPEN_READER(re, s)
  658.     UPDATE_CACHE(re, s)
           ^
  659.     tmp= SHOW_UBITS(re, s, n);
  660.     LAST_SKIP_BITS(re, s, n)
