libavcodec/ra288.c:184: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 181 could be null and is dereferenced by call to `get_bits()` at line 184, 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, const uint8_t * buf,
164.                               int buf_size)

libavcodec/ra288.c:166:5: 
164.                               int buf_size)
165. {
166.     float *out = data;
         ^
167.     int i, j;
168.     RA288Context *ractx = avctx->priv_data;

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

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

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

libavcodec/ra288.c:181:5: 
179.         return -1;
180. 
181.     init_get_bits(&gb, buf, avctx->block_align * 8);
         ^
182. 
183.     for (i=0; i < 32; i++) {

libavcodec/bitstream.h:737:1: start of procedure init_get_bits()
  735.  * @param bit_size the size of the buffer in bits
  736.  */
  737. static inline void init_get_bits(GetBitContext *s,
       ^
  738.                    const uint8_t *buffer, int bit_size)
  739. {

libavcodec/bitstream.h:740:5: 
  738.                    const uint8_t *buffer, int bit_size)
  739. {
  740.     int buffer_size= (bit_size+7)>>3;
           ^
  741.     if(buffer_size < 0 || bit_size < 0) {
  742.         buffer_size = bit_size = 0;

libavcodec/bitstream.h:741:8: Taking true branch
  739. {
  740.     int buffer_size= (bit_size+7)>>3;
  741.     if(buffer_size < 0 || bit_size < 0) {
              ^
  742.         buffer_size = bit_size = 0;
  743.         buffer = NULL;

libavcodec/bitstream.h:742:9: 
  740.     int buffer_size= (bit_size+7)>>3;
  741.     if(buffer_size < 0 || bit_size < 0) {
  742.         buffer_size = bit_size = 0;
               ^
  743.         buffer = NULL;
  744.     }

libavcodec/bitstream.h:743:9: 
  741.     if(buffer_size < 0 || bit_size < 0) {
  742.         buffer_size = bit_size = 0;
  743.         buffer = NULL;
               ^
  744.     }
  745. 

libavcodec/bitstream.h:746:5: 
  744.     }
  745. 
  746.     s->buffer= buffer;
           ^
  747.     s->size_in_bits= bit_size;
  748.     s->buffer_end= buffer + buffer_size;

libavcodec/bitstream.h:747:5: 
  745. 
  746.     s->buffer= buffer;
  747.     s->size_in_bits= bit_size;
           ^
  748.     s->buffer_end= buffer + buffer_size;
  749. #ifdef ALT_BITSTREAM_READER

libavcodec/bitstream.h:748:5: 
  746.     s->buffer= buffer;
  747.     s->size_in_bits= bit_size;
  748.     s->buffer_end= buffer + buffer_size;
           ^
  749. #ifdef ALT_BITSTREAM_READER
  750.     s->index=0;

libavcodec/bitstream.h:750:5: 
  748.     s->buffer_end= buffer + buffer_size;
  749. #ifdef ALT_BITSTREAM_READER
  750.     s->index=0;
           ^
  751. #elif defined LIBMPEG2_BITSTREAM_READER
  752.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/bitstream.h:760:1: return from a call to init_get_bits
  758.     skip_bits_long(s, 0);
  759. #endif
  760. }
       ^
  761. 
  762. static inline void align_get_bits(GetBitContext *s)

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

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

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

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

libavcodec/bitstream.h:636:5: 
  634. static inline unsigned int get_bits(GetBitContext *s, int n){
  635.     register int tmp;
  636.     OPEN_READER(re, s)
           ^
  637.     UPDATE_CACHE(re, s)
  638.     tmp= SHOW_UBITS(re, s, n);

libavcodec/bitstream.h:637:5: 
  635.     register int tmp;
  636.     OPEN_READER(re, s)
  637.     UPDATE_CACHE(re, s)
           ^
  638.     tmp= SHOW_UBITS(re, s, n);
  639.     LAST_SKIP_BITS(re, s, n)
