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

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

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

tools/tiff2pdf.c:1064:44: <Length trace>
1062. 		return;
1063. 	}
1064. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                                 ^
1065. 	if(t2p->tiff_pages==NULL){
1066. 		TIFFError(

tools/tiff2pdf.c:1064:44: Assignment
1062. 		return;
1063. 	}
1064. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                                 ^
1065. 	if(t2p->tiff_pages==NULL){
1066. 		TIFFError(

tools/tiff2pdf.c:1064:32: Call
1062. 		return;
1063. 	}
1064. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
                                     ^
1065. 	if(t2p->tiff_pages==NULL){
1066. 		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:1064:2: Assignment
1062. 		return;
1063. 	}
1064. 	t2p->tiff_pages = (T2P_PAGE*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,directorycount,sizeof(T2P_PAGE)));
       ^
1065. 	if(t2p->tiff_pages==NULL){
1066. 		TIFFError(

tools/tiff2pdf.c:1103:5: Array access: Offset: t2p->tiff_pagecount Size: [0, 1048544]
1101. 					paged;
1102. 			} else {
1103. 				t2p->tiff_pages[t2p->tiff_pagecount].page_number = 
          ^
1104. 					pagen;
1105. 			}
