tools/tiff2pdf.c:1093: error: Buffer Overrun S2
  Offset: `t2p->tiff_pagecount` Size: [0, 1048560].

tools/tiff2pdf.c:1043:1: <Offset trace>
1041. */
1042. 
1043. void t2p_read_tiff_init(T2P* t2p, TIFF* input){
      ^
1044. 
1045. 	tdir_t directorycount=0;

tools/tiff2pdf.c:1043:1: Parameter `t2p->tiff_pagecount`
1041. */
1042. 
1043. void t2p_read_tiff_init(T2P* t2p, TIFF* input){
      ^
1044. 
1045. 	tdir_t directorycount=0;

tools/tiff2pdf.c:1054:44: <Length trace>
1052. 
1053. 	directorycount=TIFFNumberOfDirectories(input);
1054. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                                 ^
1055. 	if(t2p->tiff_pages==NULL){
1056. 		TIFFError(

tools/tiff2pdf.c:1054:44: Assignment
1052. 
1053. 	directorycount=TIFFNumberOfDirectories(input);
1054. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                                 ^
1055. 	if(t2p->tiff_pages==NULL){
1056. 		TIFFError(

tools/tiff2pdf.c:1054:32: Call
1052. 
1053. 	directorycount=TIFFNumberOfDirectories(input);
1054. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                     ^
1055. 	if(t2p->tiff_pages==NULL){
1056. 		TIFFError(

libtiff/tif_unix.c:312:17: Assignment
  310. {
  311.         if (s == 0)
  312.                 return ((void *) NULL);
                       ^
  313. 
  314. 	return (malloc((size_t) s));

tools/tiff2pdf.c:1054:2: Assignment
1052. 
1053. 	directorycount=TIFFNumberOfDirectories(input);
1054. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
       ^
1055. 	if(t2p->tiff_pages==NULL){
1056. 		TIFFError(

tools/tiff2pdf.c:1093:5: Array access: Offset: t2p->tiff_pagecount Size: [0, 1048560]
1091. 					paged;
1092. 			} else {
1093. 				t2p->tiff_pages[t2p->tiff_pagecount].page_number = 
          ^
1094. 					pagen;
1095. 			}
