libtiff/tif_dirinfo.c:856: error: Buffer Overrun S2
  Offset: `tif->tif_nfieldscompat` Size: [0, +oo].

libtiff/tif_dirinfo.c:827:1: <Offset trace>
825. }
826. 
827. int
     ^
828. TIFFMergeFieldInfo(TIFF* tif, const TIFFFieldInfo info[], uint32 n)
829. {

libtiff/tif_dirinfo.c:827:1: Parameter `tif->tif_nfieldscompat`
825. }
826. 
827. int
     ^
828. TIFFMergeFieldInfo(TIFF* tif, const TIFFFieldInfo info[], uint32 n)
829. {

libtiff/tif_dirinfo.c:851:2: Assignment
849. 		return -1;
850. 	}
851. 	nfields = tif->tif_nfieldscompat++;
      ^
852. 
853. 	tif->tif_fieldscompat[nfields].type = tfiatOther;

libtiff/tif_dirinfo.c:827:1: <Length trace>
825. }
826. 
827. int
     ^
828. TIFFMergeFieldInfo(TIFF* tif, const TIFFFieldInfo info[], uint32 n)
829. {

libtiff/tif_dirinfo.c:827:1: Parameter `*tif->tif_fieldscompat`
825. }
826. 
827. int
     ^
828. TIFFMergeFieldInfo(TIFF* tif, const TIFFFieldInfo info[], uint32 n)
829. {

libtiff/tif_dirinfo.c:838:4: Call
836. 	if (tif->tif_nfieldscompat > 0) {
837. 		tif->tif_fieldscompat = (TIFFFieldArray *)
838. 			_TIFFCheckRealloc(tif, tif->tif_fieldscompat,
        ^
839. 					  tif->tif_nfieldscompat + 1,
840. 					  sizeof(TIFFFieldArray), reason);

libtiff/tif_aux.c:66:2: Assignment
  64. 		  tmsize_t nmemb, tmsize_t elem_size, const char* what)
  65. {
  66. 	void* cp = NULL;
       ^
  67. 	tmsize_t bytes = nmemb * elem_size;
  68. 

libtiff/tif_aux.c:82:2: Assignment
  80. 	}
  81. 
  82. 	return cp;
       ^
  83. }
  84. 

libtiff/tif_dirinfo.c:837:3: Assignment
835. 
836. 	if (tif->tif_nfieldscompat > 0) {
837. 		tif->tif_fieldscompat = (TIFFFieldArray *)
       ^
838. 			_TIFFCheckRealloc(tif, tif->tif_fieldscompat,
839. 					  tif->tif_nfieldscompat + 1,

libtiff/tif_dirinfo.c:856:2: Array access: Offset: tif->tif_nfieldscompat Size: [0, +oo]
854. 	tif->tif_fieldscompat[nfields].allocated_size = n;
855. 	tif->tif_fieldscompat[nfields].count = n;
856. 	tif->tif_fieldscompat[nfields].fields =
      ^
857. 		(TIFFField *)_TIFFCheckMalloc(tif, n, sizeof(TIFFField),
858. 					      reason);
