tools/tiff2pdf.c:1904: error: Null Dereference
  pointer `tbc` last assigned on line 1885 could be null and is dereferenced at line 1904, column 33.

tools/tiff2pdf.c:1883:1: start of procedure t2p_read_tiff_size_tile()
1881. */
1882. 
1883. void t2p_read_tiff_size_tile(T2P* t2p, TIFF* input, ttile_t tile){
      ^
1884. 
1885. 	uint64* tbc = NULL;

tools/tiff2pdf.c:1885:2: 
1883. void t2p_read_tiff_size_tile(T2P* t2p, TIFF* input, ttile_t tile){
1884. 
1885. 	uint64* tbc = NULL;
       ^
1886. 	uint16 edge=0;
1887. #ifdef JPEG_SUPPORT

tools/tiff2pdf.c:1886:2: 
1884. 
1885. 	uint64* tbc = NULL;
1886. 	uint16 edge=0;
       ^
1887. #ifdef JPEG_SUPPORT
1888. 	unsigned char* jpt;

tools/tiff2pdf.c:1891:2: 
1889. #endif
1890. 
1891. 	edge |= t2p_tile_is_right_edge(t2p->tiff_tiles[t2p->pdf_page], tile);
       ^
1892. 	edge |= t2p_tile_is_bottom_edge(t2p->tiff_tiles[t2p->pdf_page], tile);
1893. 	

tools/tiff2pdf.c:1938:1: start of procedure t2p_tile_is_right_edge()
  1936.  */
  1937. 
  1938. int t2p_tile_is_right_edge(T2P_TILES tiles, ttile_t tile){
        ^
  1939. 
  1940. 	if( ((tile+1) % tiles.tiles_tilecountx == 0) 

tools/tiff2pdf.c:1940:7: Taking false branch
  1938. int t2p_tile_is_right_edge(T2P_TILES tiles, ttile_t tile){
  1939. 
  1940. 	if( ((tile+1) % tiles.tiles_tilecountx == 0) 
              ^
  1941. 		&& (tiles.tiles_edgetilewidth != 0) ){
  1942. 		return(1);

tools/tiff2pdf.c:1944:3: 
  1942. 		return(1);
  1943. 	} else {
  1944. 		return(0);
          ^
  1945. 	}
  1946. }

tools/tiff2pdf.c:1946:1: return from a call to t2p_tile_is_right_edge
  1944. 		return(0);
  1945. 	}
  1946. }
        ^
  1947. 
  1948. /*

tools/tiff2pdf.c:1892:2: 
1890. 
1891. 	edge |= t2p_tile_is_right_edge(t2p->tiff_tiles[t2p->pdf_page], tile);
1892. 	edge |= t2p_tile_is_bottom_edge(t2p->tiff_tiles[t2p->pdf_page], tile);
       ^
1893. 	
1894. 	if(t2p->pdf_transcode==T2P_TRANSCODE_RAW){

tools/tiff2pdf.c:1953:1: start of procedure t2p_tile_is_bottom_edge()
  1951.  */
  1952. 
  1953. int t2p_tile_is_bottom_edge(T2P_TILES tiles, ttile_t tile){
        ^
  1954. 
  1955. 	if( ((tile+1) > (tiles.tiles_tilecount-tiles.tiles_tilecountx) )

tools/tiff2pdf.c:1955:7: Taking false branch
  1953. int t2p_tile_is_bottom_edge(T2P_TILES tiles, ttile_t tile){
  1954. 
  1955. 	if( ((tile+1) > (tiles.tiles_tilecount-tiles.tiles_tilecountx) )
              ^
  1956. 		&& (tiles.tiles_edgetilelength != 0) ){
  1957. 		return(1);

tools/tiff2pdf.c:1959:3: 
  1957. 		return(1);
  1958. 	} else {
  1959. 		return(0);
          ^
  1960. 	}
  1961. }

tools/tiff2pdf.c:1961:1: return from a call to t2p_tile_is_bottom_edge
  1959. 		return(0);
  1960. 	}
  1961. }
        ^
  1962. 
  1963. /*

tools/tiff2pdf.c:1894:5: Taking true branch
1892. 	edge |= t2p_tile_is_bottom_edge(t2p->tiff_tiles[t2p->pdf_page], tile);
1893. 	
1894. 	if(t2p->pdf_transcode==T2P_TRANSCODE_RAW){
          ^
1895. 		if(edge
1896. #if defined(JPEG_SUPPORT) || defined(OJPEG_SUPPORT)

tools/tiff2pdf.c:1895:6: Taking false branch
1893. 	
1894. 	if(t2p->pdf_transcode==T2P_TRANSCODE_RAW){
1895. 		if(edge
           ^
1896. #if defined(JPEG_SUPPORT) || defined(OJPEG_SUPPORT)
1897. 		&& !(t2p->pdf_compression==T2P_COMPRESS_JPEG)

tools/tiff2pdf.c:1903:4: 
1901. 			return;
1902. 		} else {
1903. 			TIFFGetField(input, TIFFTAG_TILEBYTECOUNTS, &tbc);
         ^
1904. 			t2p->tiff_datasize=(tmsize_t)tbc[tile];
1905. #ifdef OJPEG_SUPPORT

libtiff/tif_dir.c:1100:1: start of procedure TIFFGetField()
  1098.  * internal directory structure.
  1099.  */
  1100. int
        ^
  1101. TIFFGetField(TIFF* tif, uint32 tag, ...)
  1102. {

libtiff/tif_dir.c:1106:2: 
  1104. 	va_list ap;
  1105. 
  1106. 	va_start(ap, tag);
         ^
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);

libtiff/tif_dir.c:1107:2: Skipping TIFFVGetField(): empty list of specs
  1105. 
  1106. 	va_start(ap, tag);
  1107. 	status = TIFFVGetField(tif, tag, ap);
         ^
  1108. 	va_end(ap);
  1109. 	return (status);

libtiff/tif_dir.c:1108:2: 
  1106. 	va_start(ap, tag);
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);
         ^
  1109. 	return (status);
  1110. }

libtiff/tif_dir.c:1109:2: 
  1107. 	status = TIFFVGetField(tif, tag, ap);
  1108. 	va_end(ap);
  1109. 	return (status);
         ^
  1110. }
  1111. 

libtiff/tif_dir.c:1110:1: return from a call to TIFFGetField
  1108. 	va_end(ap);
  1109. 	return (status);
  1110. }
        ^
  1111. 
  1112. /*

tools/tiff2pdf.c:1904:4: 
1902. 		} else {
1903. 			TIFFGetField(input, TIFFTAG_TILEBYTECOUNTS, &tbc);
1904. 			t2p->tiff_datasize=(tmsize_t)tbc[tile];
         ^
1905. #ifdef OJPEG_SUPPORT
1906. 			if(t2p->tiff_compression==COMPRESSION_OJPEG){
