libavcodec/flacdec.c:190: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 188 could be null and is dereferenced by call to `skip_bits()` at line 190, column 5.

libavcodec/flacdec.c:184:1: start of procedure ff_flac_parse_streaminfo()
182. }
183. 
184. void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
     ^
185.                               const uint8_t *buffer)
186. {

libavcodec/flacdec.c:188:5: 
186. {
187.     GetBitContext gb;
188.     init_get_bits(&gb, buffer, FLAC_STREAMINFO_SIZE*8);
         ^
189. 
190.     skip_bits(&gb, 16); /* skip min blocksize */

libavcodec/bitstream.h:743:1: start of procedure init_get_bits()
  741.  * @param bit_size the size of the buffer in bits
  742.  */
  743. static inline void init_get_bits(GetBitContext *s,
       ^
  744.                    const uint8_t *buffer, int bit_size)
  745. {

libavcodec/bitstream.h:746:5: 
  744.                    const uint8_t *buffer, int bit_size)
  745. {
  746.     int buffer_size= (bit_size+7)>>3;
           ^
  747.     if(buffer_size < 0 || bit_size < 0) {
  748.         buffer_size = bit_size = 0;

libavcodec/bitstream.h:747:8: Taking true branch
  745. {
  746.     int buffer_size= (bit_size+7)>>3;
  747.     if(buffer_size < 0 || bit_size < 0) {
              ^
  748.         buffer_size = bit_size = 0;
  749.         buffer = NULL;

libavcodec/bitstream.h:748:9: 
  746.     int buffer_size= (bit_size+7)>>3;
  747.     if(buffer_size < 0 || bit_size < 0) {
  748.         buffer_size = bit_size = 0;
               ^
  749.         buffer = NULL;
  750.     }

libavcodec/bitstream.h:749:9: 
  747.     if(buffer_size < 0 || bit_size < 0) {
  748.         buffer_size = bit_size = 0;
  749.         buffer = NULL;
               ^
  750.     }
  751. 

libavcodec/bitstream.h:752:5: 
  750.     }
  751. 
  752.     s->buffer= buffer;
           ^
  753.     s->size_in_bits= bit_size;
  754.     s->buffer_end= buffer + buffer_size;

libavcodec/bitstream.h:753:5: 
  751. 
  752.     s->buffer= buffer;
  753.     s->size_in_bits= bit_size;
           ^
  754.     s->buffer_end= buffer + buffer_size;
  755. #ifdef ALT_BITSTREAM_READER

libavcodec/bitstream.h:754:5: 
  752.     s->buffer= buffer;
  753.     s->size_in_bits= bit_size;
  754.     s->buffer_end= buffer + buffer_size;
           ^
  755. #ifdef ALT_BITSTREAM_READER
  756.     s->index=0;

libavcodec/bitstream.h:756:5: 
  754.     s->buffer_end= buffer + buffer_size;
  755. #ifdef ALT_BITSTREAM_READER
  756.     s->index=0;
           ^
  757. #elif defined LIBMPEG2_BITSTREAM_READER
  758.     s->buffer_ptr = (uint8_t*)((intptr_t)buffer&(~1));

libavcodec/bitstream.h:766:1: return from a call to init_get_bits
  764.     skip_bits_long(s, 0);
  765. #endif
  766. }
       ^
  767. 
  768. static inline void align_get_bits(GetBitContext *s)

libavcodec/flacdec.c:190:5: 
188.     init_get_bits(&gb, buffer, FLAC_STREAMINFO_SIZE*8);
189. 
190.     skip_bits(&gb, 16); /* skip min blocksize */
         ^
191.     s->max_blocksize = get_bits(&gb, 16);
192.     if (s->max_blocksize < 16) {

libavcodec/bitstream.h:658:1: start of procedure skip_bits()
  656. }
  657. 
  658. static inline void skip_bits(GetBitContext *s, int n){
       ^
  659.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  660.     OPEN_READER(re, s)

libavcodec/bitstream.h:660:5: 
  658. static inline void skip_bits(GetBitContext *s, int n){
  659.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  660.     OPEN_READER(re, s)
           ^
  661.     UPDATE_CACHE(re, s)
  662.     LAST_SKIP_BITS(re, s, n)

libavcodec/bitstream.h:661:5: 
  659.  //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
  660.     OPEN_READER(re, s)
  661.     UPDATE_CACHE(re, s)
           ^
  662.     LAST_SKIP_BITS(re, s, n)
  663.     CLOSE_READER(re, s)
