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

libavcodec/ra144.c:289:1: start of procedure ra144_decode_frame()
287. 
288. /** Uncompress one block (20 bytes -> 160*2 bytes). */
289. static int ra144_decode_frame(AVCodecContext * avctx, void *vdata,
     ^
290.                               int *data_size, AVPacket *avpkt)
291. {

libavcodec/ra144.c:292:5: 
290.                               int *data_size, AVPacket *avpkt)
291. {
292.     const uint8_t *buf = avpkt->data;
         ^
293.     int buf_size = avpkt->size;
294.     static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};

libavcodec/ra144.c:293:5: 
291. {
292.     const uint8_t *buf = avpkt->data;
293.     int buf_size = avpkt->size;
         ^
294.     static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
295.     unsigned int refl_rms[4];    // RMS of the reflection coefficients

libavcodec/ra144.c:294:5: 
292.     const uint8_t *buf = avpkt->data;
293.     int buf_size = avpkt->size;
294.     static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
         ^
295.     unsigned int refl_rms[4];    // RMS of the reflection coefficients
296.     uint16_t block_coefs[4][30]; // LPC coefficients of each sub-block

libavcodec/ra144.c:299:5: 
297.     unsigned int lpc_refl[10];   // LPC reflection coefficients of the frame
298.     int i, j;
299.     int16_t *data = vdata;
         ^
300.     unsigned int energy;
301. 

libavcodec/ra144.c:302:5: 
300.     unsigned int energy;
301. 
302.     RA144Context *ractx = avctx->priv_data;
         ^
303.     GetBitContext gb;
304. 

libavcodec/ra144.c:305:9: Taking false branch
303.     GetBitContext gb;
304. 
305.     if (*data_size < 2*160)
             ^
306.         return -1;
307. 

libavcodec/ra144.c:308:8: Taking false branch
306.         return -1;
307. 
308.     if(buf_size < 20) {
            ^
309.         av_log(avctx, AV_LOG_ERROR,
310.                "Frame too small (%d bytes). Truncated file?\n", buf_size);

libavcodec/ra144.c:314:5: 
312.         return buf_size;
313.     }
314.     init_get_bits(&gb, buf, 20 * 8);
         ^
315. 
316.     for (i=0; i<10; i++)

libavcodec/get_bits.h:493:1: start of procedure init_get_bits()
  491.  * @param bit_size the size of the buffer in bits
  492.  */
  493. static inline void init_get_bits(GetBitContext *s,
       ^
  494.                    const uint8_t *buffer, int bit_size)
  495. {

libavcodec/get_bits.h:496:5: 
  494.                    const uint8_t *buffer, int bit_size)
  495. {
  496.     int buffer_size= (bit_size+7)>>3;
           ^
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;

libavcodec/get_bits.h:497:8: Taking true branch
  495. {
  496.     int buffer_size= (bit_size+7)>>3;
  497.     if(buffer_size < 0 || bit_size < 0) {
              ^
  498.         buffer_size = bit_size = 0;
  499.         buffer = NULL;

libavcodec/get_bits.h:498:9: 
  496.     int buffer_size= (bit_size+7)>>3;
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;
               ^
  499.         buffer = NULL;
  500.     }

libavcodec/get_bits.h:499:9: 
  497.     if(buffer_size < 0 || bit_size < 0) {
  498.         buffer_size = bit_size = 0;
  499.         buffer = NULL;
               ^
  500.     }
  501. 

libavcodec/get_bits.h:502:5: 
  500.     }
  501. 
  502.     s->buffer= buffer;
           ^
  503.     s->size_in_bits= bit_size;
  504.     s->buffer_end= buffer + buffer_size;

libavcodec/get_bits.h:503:5: 
  501. 
  502.     s->buffer= buffer;
  503.     s->size_in_bits= bit_size;
           ^
  504.     s->buffer_end= buffer + buffer_size;
  505. #ifdef ALT_BITSTREAM_READER

libavcodec/get_bits.h:504:5: 
  502.     s->buffer= buffer;
  503.     s->size_in_bits= bit_size;
  504.     s->buffer_end= buffer + buffer_size;
           ^
  505. #ifdef ALT_BITSTREAM_READER
  506.     s->index=0;

libavcodec/get_bits.h:506:5: 
  504.     s->buffer_end= buffer + buffer_size;
  505. #ifdef ALT_BITSTREAM_READER
  506.     s->index=0;
           ^
  507. #elif defined LIBMPEG2_BITSTREAM_READER
  508.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/get_bits.h:516:1: return from a call to init_get_bits
  514.     skip_bits_long(s, 0);
  515. #endif
  516. }
       ^
  517. 
  518. static inline void align_get_bits(GetBitContext *s)

libavcodec/ra144.c:316:10: 
314.     init_get_bits(&gb, buf, 20 * 8);
315. 
316.     for (i=0; i<10; i++)
              ^
317.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
318. 

libavcodec/ra144.c:316:15: Loop condition is true. Entering loop body
314.     init_get_bits(&gb, buf, 20 * 8);
315. 
316.     for (i=0; i<10; i++)
                   ^
317.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
318. 

libavcodec/ra144.c:317:9: 
315. 
316.     for (i=0; i<10; i++)
317.         lpc_refl[i] = lpc_refl_cb[i][get_bits(&gb, sizes[i])];
             ^
318. 
319.     eval_coefs(ractx->lpc_coef[0], lpc_refl);

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

libavcodec/get_bits.h:387:5: 
  385. static inline unsigned int get_bits(GetBitContext *s, int n){
  386.     register int tmp;
  387.     OPEN_READER(re, s)
           ^
  388.     UPDATE_CACHE(re, s)
  389.     tmp= SHOW_UBITS(re, s, n);

libavcodec/get_bits.h:388:5: 
  386.     register int tmp;
  387.     OPEN_READER(re, s)
  388.     UPDATE_CACHE(re, s)
           ^
  389.     tmp= SHOW_UBITS(re, s, n);
  390.     LAST_SKIP_BITS(re, s, n)
