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

tools/tiff2pdf.c:1966:1: start of procedure t2p_read_tiff_size()
1964. */
1965. 
1966. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1967. 
1968. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1968:2: 
1966. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1967. 
1968. 	uint64* sbc=NULL;
       ^
1969. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1970. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1970:2: 
1968. 	uint64* sbc=NULL;
1969. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1970. 	unsigned char* jpt=NULL;
       ^
1971. 	tstrip_t i=0;
1972. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1971:2: 
1969. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1970. 	unsigned char* jpt=NULL;
1971. 	tstrip_t i=0;
       ^
1972. 	tstrip_t stripcount=0;
1973. #endif

tools/tiff2pdf.c:1972:2: 
1970. 	unsigned char* jpt=NULL;
1971. 	tstrip_t i=0;
1972. 	tstrip_t stripcount=0;
       ^
1973. #endif
1974.         uint64 k = 0;

tools/tiff2pdf.c:1974:9: 
1972. 	tstrip_t stripcount=0;
1973. #endif
1974.         uint64 k = 0;
              ^
1975. 
1976. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1976:5: Taking true branch
1974.         uint64 k = 0;
1975. 
1976. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1977. #ifdef CCITT_SUPPORT
1978. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1978:6: Taking true branch
1976. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1977. #ifdef CCITT_SUPPORT
1978. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1979. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1980.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1979:4: 
1977. #ifdef CCITT_SUPPORT
1978. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1979. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1980.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
1981.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");

libtiff/tif_dir.c:1269:1: start of procedure TIFFGetField()
  1267.  * internal directory structure.
  1268.  */
  1269. int
        ^
  1270. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1271. {

libtiff/tif_dir.c:1275:2: 
  1273. 	va_list ap;
  1274. 
  1275. 	va_start(ap, tag);
         ^
  1276. 	status = TIFFVGetField(tif, tag, ap);
  1277. 	va_end(ap);

libtiff/tif_dir.c:1276:2: Skipping TIFFVGetField(): empty list of specs
  1274. 
  1275. 	va_start(ap, tag);
  1276. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1277. 	va_end(ap);
  1278. 	return (status);

libtiff/tif_dir.c:1277:2: 
  1275. 	va_start(ap, tag);
  1276. 	status = TIFFVGetField(tif, tag, ap);
  1277. 	va_end(ap);
         ^
  1278. 	return (status);
  1279. }

libtiff/tif_dir.c:1278:2: 
  1276. 	status = TIFFVGetField(tif, tag, ap);
  1277. 	va_end(ap);
  1278. 	return (status);
         ^
  1279. }
  1280. 

libtiff/tif_dir.c:1279:1: return from a call to TIFFGetField
  1277. 	va_end(ap);
  1278. 	return (status);
  1279. }
        ^
  1280. 
  1281. /*

tools/tiff2pdf.c:1980:17: 
1978. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1979. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1980.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
                      ^
1981.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");
1982.                 t2p->t2p_error = T2P_ERR_ERROR;
