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

tools/tiff2pdf.c:1897:1: start of procedure t2p_read_tiff_size()
1895. */
1896. 
1897. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1898. 
1899. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1899:2: 
1897. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1898. 
1899. 	uint64* sbc=NULL;
       ^
1900. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1901. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1901:2: 
1899. 	uint64* sbc=NULL;
1900. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1901. 	unsigned char* jpt=NULL;
       ^
1902. 	tstrip_t i=0;
1903. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1902:2: 
1900. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1901. 	unsigned char* jpt=NULL;
1902. 	tstrip_t i=0;
       ^
1903. 	tstrip_t stripcount=0;
1904. #endif

tools/tiff2pdf.c:1903:2: 
1901. 	unsigned char* jpt=NULL;
1902. 	tstrip_t i=0;
1903. 	tstrip_t stripcount=0;
       ^
1904. #endif
1905.         uint64 k = 0;

tools/tiff2pdf.c:1905:9: 
1903. 	tstrip_t stripcount=0;
1904. #endif
1905.         uint64 k = 0;
              ^
1906. 
1907. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1907:5: Taking true branch
1905.         uint64 k = 0;
1906. 
1907. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1908. #ifdef CCITT_SUPPORT
1909. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1909:6: Taking true branch
1907. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1908. #ifdef CCITT_SUPPORT
1909. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1910. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1911.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1910:4: 
1908. #ifdef CCITT_SUPPORT
1909. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1910. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1911.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
1912.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");

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

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

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

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

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

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

tools/tiff2pdf.c:1911:17: 
1909. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
1910. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1911.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
                      ^
1912.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");
1913.                 t2p->t2p_error = T2P_ERR_ERROR;
