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

tools/tiff2pdf.c:1930:1: start of procedure t2p_read_tiff_size()
1928. */
1929. 
1930. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1931. 
1932. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1932:2: 
1930. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1931. 
1932. 	uint64* sbc=NULL;
       ^
1933. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1934. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1934:2: 
1932. 	uint64* sbc=NULL;
1933. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1934. 	unsigned char* jpt=NULL;
       ^
1935. 	tstrip_t i=0;
1936. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1935:2: 
1933. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1934. 	unsigned char* jpt=NULL;
1935. 	tstrip_t i=0;
       ^
1936. 	tstrip_t stripcount=0;
1937. #endif

tools/tiff2pdf.c:1936:2: 
1934. 	unsigned char* jpt=NULL;
1935. 	tstrip_t i=0;
1936. 	tstrip_t stripcount=0;
       ^
1937. #endif
1938.         uint64 k = 0;

tools/tiff2pdf.c:1938:9: 
1936. 	tstrip_t stripcount=0;
1937. #endif
1938.         uint64 k = 0;
              ^
1939. 
1940. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1940:5: Taking true branch
1938.         uint64 k = 0;
1939. 
1940. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1941. #ifdef CCITT_SUPPORT
1942. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1942:6: Taking false branch
1940. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1941. #ifdef CCITT_SUPPORT
1942. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1943. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1944.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1953:6: Taking true branch
1951. #endif
1952. #ifdef ZIP_SUPPORT
1953. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
           ^
1954. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1955.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1954:4: 
1952. #ifdef ZIP_SUPPORT
1953. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1954. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1955.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
1956.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");

libtiff/tif_dir.c:1214:1: start of procedure TIFFGetField()
  1212.  * internal directory structure.
  1213.  */
  1214. int
        ^
  1215. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1216. {

libtiff/tif_dir.c:1220:2: 
  1218. 	va_list ap;
  1219. 
  1220. 	va_start(ap, tag);
         ^
  1221. 	status = TIFFVGetField(tif, tag, ap);
  1222. 	va_end(ap);

libtiff/tif_dir.c:1221:2: Skipping TIFFVGetField(): empty list of specs
  1219. 
  1220. 	va_start(ap, tag);
  1221. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1222. 	va_end(ap);
  1223. 	return (status);

libtiff/tif_dir.c:1222:2: 
  1220. 	va_start(ap, tag);
  1221. 	status = TIFFVGetField(tif, tag, ap);
  1222. 	va_end(ap);
         ^
  1223. 	return (status);
  1224. }

libtiff/tif_dir.c:1223:2: 
  1221. 	status = TIFFVGetField(tif, tag, ap);
  1222. 	va_end(ap);
  1223. 	return (status);
         ^
  1224. }
  1225. 

libtiff/tif_dir.c:1224:1: return from a call to TIFFGetField
  1222. 	va_end(ap);
  1223. 	return (status);
  1224. }
        ^
  1225. 
  1226. /*

tools/tiff2pdf.c:1955:17: 
1953. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1954. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1955.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
                      ^
1956.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");
1957.                 t2p->t2p_error = T2P_ERR_ERROR;
