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

tools/tiff2pdf.c:1892:1: start of procedure t2p_read_tiff_size()
1890. */
1891. 
1892. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
      ^
1893. 
1894. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1894:2: 
1892. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
1893. 
1894. 	uint64* sbc=NULL;
       ^
1895. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1896. 	unsigned char* jpt=NULL;

tools/tiff2pdf.c:1896:2: 
1894. 	uint64* sbc=NULL;
1895. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1896. 	unsigned char* jpt=NULL;
       ^
1897. 	tstrip_t i=0;
1898. 	tstrip_t stripcount=0;

tools/tiff2pdf.c:1897:2: 
1895. #if defined(JPEG_SUPPORT) || defined (OJPEG_SUPPORT)
1896. 	unsigned char* jpt=NULL;
1897. 	tstrip_t i=0;
       ^
1898. 	tstrip_t stripcount=0;
1899. #endif

tools/tiff2pdf.c:1898:2: 
1896. 	unsigned char* jpt=NULL;
1897. 	tstrip_t i=0;
1898. 	tstrip_t stripcount=0;
       ^
1899. #endif
1900.         uint64 k = 0;

tools/tiff2pdf.c:1900:9: 
1898. 	tstrip_t stripcount=0;
1899. #endif
1900.         uint64 k = 0;
              ^
1901. 
1902. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1902:5: Taking true branch
1900.         uint64 k = 0;
1901. 
1902. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
          ^
1903. #ifdef CCITT_SUPPORT
1904. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){

tools/tiff2pdf.c:1904:6: Taking false branch
1902. 	if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){
1903. #ifdef CCITT_SUPPORT
1904. 		if(t2p->pdf_compression == T2P_COMPRESS_G4 ){
           ^
1905. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1906.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1915:6: Taking true branch
1913. #endif
1914. #ifdef ZIP_SUPPORT
1915. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
           ^
1916. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1917.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {

tools/tiff2pdf.c:1916:4: 
1914. #ifdef ZIP_SUPPORT
1915. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1916. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
         ^
1917.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
1918.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");

libtiff/tif_dir.c:1175:1: start of procedure TIFFGetField()
  1173.  * internal directory structure.
  1174.  */
  1175. int
        ^
  1176. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1177. {

libtiff/tif_dir.c:1181:2: 
  1179. 	va_list ap;
  1180. 
  1181. 	va_start(ap, tag);
         ^
  1182. 	status = TIFFVGetField(tif, tag, ap);
  1183. 	va_end(ap);

libtiff/tif_dir.c:1182:2: Skipping TIFFVGetField(): empty list of specs
  1180. 
  1181. 	va_start(ap, tag);
  1182. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1183. 	va_end(ap);
  1184. 	return (status);

libtiff/tif_dir.c:1183:2: 
  1181. 	va_start(ap, tag);
  1182. 	status = TIFFVGetField(tif, tag, ap);
  1183. 	va_end(ap);
         ^
  1184. 	return (status);
  1185. }

libtiff/tif_dir.c:1184:2: 
  1182. 	status = TIFFVGetField(tif, tag, ap);
  1183. 	va_end(ap);
  1184. 	return (status);
         ^
  1185. }
  1186. 

libtiff/tif_dir.c:1185:1: return from a call to TIFFGetField
  1183. 	va_end(ap);
  1184. 	return (status);
  1185. }
        ^
  1186. 
  1187. /*

tools/tiff2pdf.c:1917:17: 
1915. 		if(t2p->pdf_compression == T2P_COMPRESS_ZIP){
1916. 			TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc);
1917.             if (sbc[0] != (uint64)(tmsize_t)sbc[0]) {
                      ^
1918.                 TIFFError(TIFF2PDF_MODULE, "Integer overflow");
1919.                 t2p->t2p_error = T2P_ERR_ERROR;
