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

tools/tiff2pdf.c:1772:1: start of procedure t2p_read_tiff_size()
1770. */
1771. 
1772. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1773. 
1774. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1774:2: 
1772. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1773. 
1774. 	uint64* sbc=NULL;
       ^
1775. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1776. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1776:2: 
1774. 	uint64* sbc=NULL;
1775. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1776. 	unsigned char* jpt=NULL;
       ^
1777. 	tstrip_t i=0;
1778. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1777:2: 
1775. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1776. 	unsigned char* jpt=NULL;
1777. 	tstrip_t i=0;
       ^
1778. 	tstrip_t stripcount=0;
1779. #endif

tools/tiff2pdf.c:1778:2: 
1776. 	unsigned char* jpt=NULL;
1777. 	tstrip_t i=0;
1778. 	tstrip_t stripcount=0;
       ^
1779. #endif
1780. #ifdef OJPEG_SUPPORT

tools/tiff2pdf.c:1781:9: 
1779. #endif
1780. #ifdef OJPEG_SUPPORT
1781.         tsize_t k = 0;
              ^
1782. #endif
1783. 

tools/tiff2pdf.c:1784:5: Taking true branch
1782. #endif
1783. 
1784. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1785. #ifdef CCITT_SUPPORT
1786. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

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

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

libtiff/tif_dir.c:1100:1: start of procedure TIFFGetField()
  1098.  * internal directory structure.
  1099.  */
  1100. int
        ^
  1101. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1102. {

libtiff/tif_dir.c:1106:2: 
  1104. 	va_list ap;
  1105. 
  1106. 	va_start(ap, tag);
         ^
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);

libtiff/tif_dir.c:1107:2: Skipping TIFFVGetField(): empty list of specs
  1105. 
  1106. 	va_start(ap, tag);
  1107. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1108. 	va_end(ap);
  1109. 	return (status);

libtiff/tif_dir.c:1108:2: 
  1106. 	va_start(ap, tag);
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);
         ^
  1109. 	return (status);
  1110. }

libtiff/tif_dir.c:1109:2: 
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);
  1109. 	return (status);
         ^
  1110. }
  1111. 

libtiff/tif_dir.c:1110:1: return from a call to TIFFGetField
  1108. 	va_end(ap);
  1109. 	return (status);
  1110. }
        ^
  1111. 
  1112. /*

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