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

tools/tiff2pdf.c:1858:1: start of procedure t2p_read_tiff_size()
1856. */
1857. 
1858. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1859. 
1860. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1860:2: 
1858. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1859. 
1860. 	uint64* sbc=NULL;
       ^
1861. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1862. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1862:2: 
1860. 	uint64* sbc=NULL;
1861. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1862. 	unsigned char* jpt=NULL;
       ^
1863. 	tstrip_t i=0;
1864. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1863:2: 
1861. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1862. 	unsigned char* jpt=NULL;
1863. 	tstrip_t i=0;
       ^
1864. 	tstrip_t stripcount=0;
1865. #endif

tools/tiff2pdf.c:1864:2: 
1862. 	unsigned char* jpt=NULL;
1863. 	tstrip_t i=0;
1864. 	tstrip_t stripcount=0;
       ^
1865. #endif
1866.         uint64 k = 0;

tools/tiff2pdf.c:1866:9: 
1864. 	tstrip_t stripcount=0;
1865. #endif
1866.         uint64 k = 0;
              ^
1867. 
1868. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1868:5: Taking true branch
1866.         uint64 k = 0;
1867. 
1868. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1869. #ifdef CCITT_SUPPORT
1870. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1870:6: Taking false branch
1868. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1869. #ifdef CCITT_SUPPORT
1870. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1871. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1872. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1877:6: Taking true branch
1875. #endif
1876. #ifdef ZIP_SUPPORT
1877. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
           ^
1878. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1879. 			t2p->tiff_datasize=(tmsize_t)sbc[0];

tools/tiff2pdf.c:1878:4: 
1876. #ifdef ZIP_SUPPORT
1877. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1878. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1879. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
1880. 			return;

libtiff/tif_dir.c:1151:1: start of procedure TIFFGetField()
  1149.  * internal directory structure.
  1150.  */
  1151. int
        ^
  1152. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1153. {

libtiff/tif_dir.c:1157:2: 
  1155. 	va_list ap;
  1156. 
  1157. 	va_start(ap, tag);
         ^
  1158. 	status = TIFFVGetField(tif, tag, ap);
  1159. 	va_end(ap);

libtiff/tif_dir.c:1158:2: Skipping TIFFVGetField(): empty list of specs
  1156. 
  1157. 	va_start(ap, tag);
  1158. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1159. 	va_end(ap);
  1160. 	return (status);

libtiff/tif_dir.c:1159:2: 
  1157. 	va_start(ap, tag);
  1158. 	status = TIFFVGetField(tif, tag, ap);
  1159. 	va_end(ap);
         ^
  1160. 	return (status);
  1161. }

libtiff/tif_dir.c:1160:2: 
  1158. 	status = TIFFVGetField(tif, tag, ap);
  1159. 	va_end(ap);
  1160. 	return (status);
         ^
  1161. }
  1162. 

libtiff/tif_dir.c:1161:1: return from a call to TIFFGetField
  1159. 	va_end(ap);
  1160. 	return (status);
  1161. }
        ^
  1162. 
  1163. /*

tools/tiff2pdf.c:1879:4: 
1877. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1878. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1879. 			t2p->tiff_datasize=(tmsize_t)sbc[0];
         ^
1880. 			return;
1881. 		}
