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

tools/tiff2pdf.c:1800:1: start of procedure t2p_read_tiff_size()
1798. */
1799. 
1800. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1801. 
1802. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1802:2: 
1800. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1801. 
1802. 	uint64* sbc=NULL;
       ^
1803. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1804. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1804:2: 
1802. 	uint64* sbc=NULL;
1803. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1804. 	unsigned char* jpt=NULL;
       ^
1805. 	tstrip_t i=0;
1806. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1805:2: 
1803. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1804. 	unsigned char* jpt=NULL;
1805. 	tstrip_t i=0;
       ^
1806. 	tstrip_t stripcount=0;
1807. #endif

tools/tiff2pdf.c:1806:2: 
1804. 	unsigned char* jpt=NULL;
1805. 	tstrip_t i=0;
1806. 	tstrip_t stripcount=0;
       ^
1807. #endif
1808.         uint64 k = 0;

tools/tiff2pdf.c:1808:9: 
1806. 	tstrip_t stripcount=0;
1807. #endif
1808.         uint64 k = 0;
              ^
1809. 
1810. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1810:5: Taking true branch
1808.         uint64 k = 0;
1809. 
1810. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1811. #ifdef CCITT_SUPPORT
1812. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1812:6: Taking false branch
1810. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1811. #ifdef CCITT_SUPPORT
1812. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1813. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1814. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1819:6: Taking true branch
1817. #endif
1818. #ifdef ZIP_SUPPORT
1819. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
           ^
1820. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1821. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1820:4: 
1818. #ifdef ZIP_SUPPORT
1819. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1820. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1821. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
1822. 			return;

libtiff/tif_dir.c:1131:1: start of procedure TIFFGetField()
  1129.  * internal directory structure.
  1130.  */
  1131. int
        ^
  1132. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1133. {

libtiff/tif_dir.c:1137:2: 
  1135. 	va_list ap;
  1136. 
  1137. 	va_start(ap, tag);
         ^
  1138. 	status = TIFFVGetField(tif, tag, ap);
  1139. 	va_end(ap);

libtiff/tif_dir.c:1138:2: Skipping TIFFVGetField(): empty list of specs
  1136. 
  1137. 	va_start(ap, tag);
  1138. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1139. 	va_end(ap);
  1140. 	return (status);

libtiff/tif_dir.c:1139:2: 
  1137. 	va_start(ap, tag);
  1138. 	status = TIFFVGetField(tif, tag, ap);
  1139. 	va_end(ap);
         ^
  1140. 	return (status);
  1141. }

libtiff/tif_dir.c:1140:2: 
  1138. 	status = TIFFVGetField(tif, tag, ap);
  1139. 	va_end(ap);
  1140. 	return (status);
         ^
  1141. }
  1142. 

libtiff/tif_dir.c:1141:1: return from a call to TIFFGetField
  1139. 	va_end(ap);
  1140. 	return (status);
  1141. }
        ^
  1142. 
  1143. /*

tools/tiff2pdf.c:1821:4: 
1819. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1820. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1821. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
         ^
1822. 			return;
1823. 		}
