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

tools/tiff2pdf.c:1954:1: start of procedure t2p_read_tiff_size()
1952. */
1953. 
1954. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1955. 
1956. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1956:2: 
1954. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1955. 
1956. 	uint64* sbc=NULL;
       ^
1957. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1958. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1958:2: 
1956. 	uint64* sbc=NULL;
1957. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1958. 	unsigned char* jpt=NULL;
       ^
1959. 	tstrip_t i=0;
1960. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1959:2: 
1957. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1958. 	unsigned char* jpt=NULL;
1959. 	tstrip_t i=0;
       ^
1960. 	tstrip_t stripcount=0;
1961. #endif

tools/tiff2pdf.c:1960:2: 
1958. 	unsigned char* jpt=NULL;
1959. 	tstrip_t i=0;
1960. 	tstrip_t stripcount=0;
       ^
1961. #endif
1962.         uint64 k = 0;

tools/tiff2pdf.c:1962:9: 
1960. 	tstrip_t stripcount=0;
1961. #endif
1962.         uint64 k = 0;
              ^
1963. 
1964. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1964:5: Taking true branch
1962.         uint64 k = 0;
1963. 
1964. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1965. #ifdef CCITT_SUPPORT
1966. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1966:6: Taking false branch
1964. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1965. #ifdef CCITT_SUPPORT
1966. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1967. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1968.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

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

tools/tiff2pdf.c:1978:4: 
1976. #ifdef ZIP_SUPPORT
1977. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1978. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1979.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
1980.                 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:1979:17: 
1977. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1978. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1979.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
                      ^
1980.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");
1981.                 t2p->t2p_error = T2P_ERR_ERROR;
