tools/tiff2pdf.c:1843: error: Null Dereference
  pointer `sbc` last assigned on line 1829 could be null and is dereferenced at line 1843, column 33.

tools/tiff2pdf.c:1827:1: start of procedure t2p_read_tiff_size()
1825. */
1826. 
1827. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1828. 
1829. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1829:2: 
1827. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1828. 
1829. 	uint64* sbc=NULL;
       ^
1830. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1831. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1831:2: 
1829. 	uint64* sbc=NULL;
1830. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1831. 	unsigned char* jpt=NULL;
       ^
1832. 	tstrip_t i=0;
1833. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1832:2: 
1830. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1831. 	unsigned char* jpt=NULL;
1832. 	tstrip_t i=0;
       ^
1833. 	tstrip_t stripcount=0;
1834. #endif

tools/tiff2pdf.c:1833:2: 
1831. 	unsigned char* jpt=NULL;
1832. 	tstrip_t i=0;
1833. 	tstrip_t stripcount=0;
       ^
1834. #endif
1835. #ifdef OJPEG_SUPPORT

tools/tiff2pdf.c:1836:9: 
1834. #endif
1835. #ifdef OJPEG_SUPPORT
1836.         tsize_t k = 0;
              ^
1837. #endif
1838. 

tools/tiff2pdf.c:1839:5: Taking true branch
1837. #endif
1838. 
1839. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1840. #ifdef CCITT_SUPPORT
1841. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1841:6: Taking true branch
1839. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1840. #ifdef CCITT_SUPPORT
1841. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1842. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1843. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1842:4: 
1840. #ifdef CCITT_SUPPORT
1841. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1842. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1843. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
1844. 			return;

libtiff/tif_dir.c:1048:1: start of procedure TIFFGetField()
  1046.  * internal directory structure.
  1047.  */
  1048. int
        ^
  1049. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1050. {

libtiff/tif_dir.c:1054:2: 
  1052. 	va_list ap;
  1053. 
  1054. 	va_start(ap, tag);
         ^
  1055. 	status = TIFFVGetField(tif, tag, ap);
  1056. 	va_end(ap);

libtiff/tif_dir.c:1055:2: Skipping TIFFVGetField(): empty list of specs
  1053. 
  1054. 	va_start(ap, tag);
  1055. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1056. 	va_end(ap);
  1057. 	return (status);

libtiff/tif_dir.c:1056:2: 
  1054. 	va_start(ap, tag);
  1055. 	status = TIFFVGetField(tif, tag, ap);
  1056. 	va_end(ap);
         ^
  1057. 	return (status);
  1058. }

libtiff/tif_dir.c:1057:2: 
  1055. 	status = TIFFVGetField(tif, tag, ap);
  1056. 	va_end(ap);
  1057. 	return (status);
         ^
  1058. }
  1059. 

libtiff/tif_dir.c:1058:1: return from a call to TIFFGetField
  1056. 	va_end(ap);
  1057. 	return (status);
  1058. }
        ^
  1059. 
  1060. /*

tools/tiff2pdf.c:1843:4: 
1841. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1842. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1843. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
         ^
1844. 			return;
1845. 		}
