libavcodec/smacker.c:587: error: Null Dereference
  pointer `&gb->buffer` last assigned on line 585 could be null and is dereferenced by call to `get_bits1()` at line 587, column 9.

libavcodec/smacker.c:568:1: start of procedure smka_decode_frame()
566.  * Decode Smacker audio data
567.  */
568. static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
     ^
569. {
570.     const uint8_t *buf = avpkt->data;

libavcodec/smacker.c:570:5: 
568. static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
569. {
570.     const uint8_t *buf = avpkt->data;
         ^
571.     int buf_size = avpkt->size;
572.     GetBitContext gb;

libavcodec/smacker.c:571:5: 
569. {
570.     const uint8_t *buf = avpkt->data;
571.     int buf_size = avpkt->size;
         ^
572.     GetBitContext gb;
573.     HuffContext h[4];

libavcodec/smacker.c:575:5: 
573.     HuffContext h[4];
574.     VLC vlc[4];
575.     int16_t *samples = data;
         ^
576.     int8_t *samples8 = data;
577.     int val;

libavcodec/smacker.c:576:5: 
574.     VLC vlc[4];
575.     int16_t *samples = data;
576.     int8_t *samples8 = data;
         ^
577.     int val;
578.     int i, res;

libavcodec/smacker.c:581:5: 
579.     int unp_size;
580.     int bits, stereo;
581.     int pred[2] = {0, 0};
         ^
582. 
583.     unp_size = AV_RL32(buf);

libavcodec/smacker.c:583:5: 
581.     int pred[2] = {0, 0};
582. 
583.     unp_size = AV_RL32(buf);
         ^
584. 
585.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);

libavcodec/smacker.c:585:5: 
583.     unp_size = AV_RL32(buf);
584. 
585.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);
         ^
586. 
587.     if(!get_bits1(&gb)){

libavcodec/get_bits.h:496:1: start of procedure init_get_bits()
  494.  * responsible for checking for the buffer end yourself (take advantage of the padding)!
  495.  */
  496. static inline void init_get_bits(GetBitContext *s,
       ^
  497.                    const uint8_t *buffer, int bit_size)
  498. {

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

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

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

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

libavcodec/get_bits.h:505:5: 
  503.     }
  504. 
  505.     s->buffer= buffer;
           ^
  506.     s->size_in_bits= bit_size;
  507.     s->buffer_end= buffer + buffer_size;

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

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

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

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

libavcodec/smacker.c:587:9: 
585.     init_get_bits(&gb, buf + 4, (buf_size - 4) * 8);
586. 
587.     if(!get_bits1(&gb)){
             ^
588.         av_log(avctx, AV_LOG_INFO, "Sound: no data\n");
589.         *data_size = 0;

libavcodec/get_bits.h:416:1: start of procedure get_bits1()
  414. }
  415. 
  416. static inline unsigned int get_bits1(GetBitContext *s){
       ^
  417. #ifdef ALT_BITSTREAM_READER
  418.     int index= s->index;

libavcodec/get_bits.h:418:5: 
  416. static inline unsigned int get_bits1(GetBitContext *s){
  417. #ifdef ALT_BITSTREAM_READER
  418.     int index= s->index;
           ^
  419.     uint8_t result= s->buffer[ index>>3 ];
  420. #ifdef ALT_BITSTREAM_READER_LE

libavcodec/get_bits.h:419:5: 
  417. #ifdef ALT_BITSTREAM_READER
  418.     int index= s->index;
  419.     uint8_t result= s->buffer[ index>>3 ];
           ^
  420. #ifdef ALT_BITSTREAM_READER_LE
  421.     result>>= (index&0x07);
