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

libavcodec/ra288.c:162:1: start of procedure ra288_decode_frame()
160. }
161. 
162. static int ra288_decode_frame(AVCodecContext * avctx, void *data,
     ^
163.                               int *data_size, AVPacket *avpkt)
164. {

libavcodec/ra288.c:165:5: 
163.                               int *data_size, AVPacket *avpkt)
164. {
165.     const uint8_t *buf = avpkt->data;
         ^
166.     int buf_size = avpkt->size;
167.     float *out = data;

libavcodec/ra288.c:166:5: 
164. {
165.     const uint8_t *buf = avpkt->data;
166.     int buf_size = avpkt->size;
         ^
167.     float *out = data;
168.     int i, j;

libavcodec/ra288.c:167:5: 
165.     const uint8_t *buf = avpkt->data;
166.     int buf_size = avpkt->size;
167.     float *out = data;
         ^
168.     int i, j;
169.     RA288Context *ractx = avctx->priv_data;

libavcodec/ra288.c:169:5: 
167.     float *out = data;
168.     int i, j;
169.     RA288Context *ractx = avctx->priv_data;
         ^
170.     GetBitContext gb;
171. 

libavcodec/ra288.c:172:9: Taking false branch
170.     GetBitContext gb;
171. 
172.     if (buf_size < avctx->block_align) {
             ^
173.         av_log(avctx, AV_LOG_ERROR,
174.                "Error! Input buffer is too small [%d<%d]\n",

libavcodec/ra288.c:179:9: Taking false branch
177.     }
178. 
179.     if (*data_size < 32*5*4)
             ^
180.         return -1;
181. 

libavcodec/ra288.c:182:5: 
180.         return -1;
181. 
182.     init_get_bits(&gb, buf, avctx->block_align * 8);
         ^
183. 
184.     for (i=0; i < 32; 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/ra288.c:184:10: 
182.     init_get_bits(&gb, buf, avctx->block_align * 8);
183. 
184.     for (i=0; i < 32; i++) {
              ^
185.         float gain = amptable[get_bits(&gb, 3)];
186.         int cb_coef = get_bits(&gb, 6 + (i&1));

libavcodec/ra288.c:184:15: Loop condition is true. Entering loop body
182.     init_get_bits(&gb, buf, avctx->block_align * 8);
183. 
184.     for (i=0; i < 32; i++) {
                   ^
185.         float gain = amptable[get_bits(&gb, 3)];
186.         int cb_coef = get_bits(&gb, 6 + (i&1));

libavcodec/ra288.c:185:9: 
183. 
184.     for (i=0; i < 32; i++) {
185.         float gain = amptable[get_bits(&gb, 3)];
             ^
186.         int cb_coef = get_bits(&gb, 6 + (i&1));
187. 

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)
