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

tools/tiff2pdf.c:1766:1: start of procedure t2p_read_tiff_size()
1764. */
1765. 
1766. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1767. 
1768. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1768:2: 
1766. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1767. 
1768. 	uint64* sbc=NULL;
       ^
1769. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1770. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1770:2: 
1768. 	uint64* sbc=NULL;
1769. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1770. 	unsigned char* jpt=NULL;
       ^
1771. 	tstrip_t i=0;
1772. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1771:2: 
1769. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1770. 	unsigned char* jpt=NULL;
1771. 	tstrip_t i=0;
       ^
1772. 	tstrip_t stripcount=0;
1773. #endif

tools/tiff2pdf.c:1772:2: 
1770. 	unsigned char* jpt=NULL;
1771. 	tstrip_t i=0;
1772. 	tstrip_t stripcount=0;
       ^
1773. #endif
1774. #ifdef OJPEG_SUPPORT

tools/tiff2pdf.c:1775:9: 
1773. #endif
1774. #ifdef OJPEG_SUPPORT
1775.         tsize_t k = 0;
              ^
1776. #endif
1777. 

tools/tiff2pdf.c:1778:5: Taking true branch
1776. #endif
1777. 
1778. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1779. #ifdef CCITT_SUPPORT
1780. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1780:6: Taking false branch
1778. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1779. #ifdef CCITT_SUPPORT
1780. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1781. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1782. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1787:6: Taking true branch
1785. #endif
1786. #ifdef ZIP_SUPPORT
1787. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
           ^
1788. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1789. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1788:4: 
1786. #ifdef ZIP_SUPPORT
1787. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1788. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1789. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
1790. 			return;

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

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

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

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

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

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

tools/tiff2pdf.c:1789:4: 
1787. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1788. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1789. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
         ^
1790. 			return;
1791. 		}
