libtiff/tif_jpeg.c:792: error: Integer Overflow L2
  ([1, +oo] - [0, 2147483647]):unsigned64 by call to `JPEGFixupTagsSubsamplingReadWord`.

libtiff/tif_jpeg.c:743:1: Parameter `data->filebytesleft`
741. }
742. 
743. static int
     ^
744. JPEGFixupTagsSubsamplingSec(struct JPEGFixupTagsSubsamplingData* data)
745. {

libtiff/tif_jpeg.c:752:9: Call
750. 		while (1)
751. 		{
752. 			if (!JPEGFixupTagsSubsamplingReadByte(data,&m))
             ^
753. 				return(0);
754. 			if (m==255)

libtiff/tif_jpeg.c:855:1: Parameter `data->filebytesleft`
  853. }
  854. 
  855. static int
       ^
  856. JPEGFixupTagsSubsamplingReadByte(struct JPEGFixupTagsSubsamplingData* data, uint8* result)
  857. {

libtiff/tif_jpeg.c:759:9: Call
757. 		while (1)
758. 		{
759. 			if (!JPEGFixupTagsSubsamplingReadByte(data,&m))
             ^
760. 				return(0);
761. 			if (m!=255)

libtiff/tif_jpeg.c:855:1: Parameter `data->filebytesleft`
  853. }
  854. 
  855. static int
       ^
  856. JPEGFixupTagsSubsamplingReadByte(struct JPEGFixupTagsSubsamplingData* data, uint8* result)
  857. {

libtiff/tif_jpeg.c:792:11: Call
790. 				{
791. 					uint16 n;
792. 					if (!JPEGFixupTagsSubsamplingReadWord(data,&n))
               ^
793. 						return(0);
794. 					if (n<2)

libtiff/tif_jpeg.c:885:1: Parameter `data->filebytesleft`
  883. }
  884. 
  885. static int
       ^
  886. JPEGFixupTagsSubsamplingReadWord(struct JPEGFixupTagsSubsamplingData* data, uint16* result)
  887. {

libtiff/tif_jpeg.c:890:7: Call
  888. 	uint8 ma;
  889. 	uint8 mb;
  890. 	if (!JPEGFixupTagsSubsamplingReadByte(data,&ma))
             ^
  891. 		return(0);
  892. 	if (!JPEGFixupTagsSubsamplingReadByte(data,&mb))

libtiff/tif_jpeg.c:855:1: <LHS trace>
853. }
854. 
855. static int
     ^
856. JPEGFixupTagsSubsamplingReadByte(struct JPEGFixupTagsSubsamplingData* data, uint8* result)
857. {

libtiff/tif_jpeg.c:855:1: Parameter `data->filebytesleft`
    853. }
    854. 
    855. static int
         ^
    856. JPEGFixupTagsSubsamplingReadByte(struct JPEGFixupTagsSubsamplingData* data, uint8* result)
    857. {

libtiff/tif_jpeg.c:872:7: <RHS trace>
870. 			m=(uint32)data->filebytesleft;
871. 		assert(m<0x80000000UL);
872. 		if (TIFFReadFile(data->tif,data->buffer,(tmsize_t)m)!=(tmsize_t)m)
           ^
873. 			return(0);
874. 		data->buffercurrentbyte=data->buffer;

libtiff/tif_jpeg.c:872:7: Unknown value from: non-const function
    870. 			m=(uint32)data->filebytesleft;
    871. 		assert(m<0x80000000UL);
    872. 		if (TIFFReadFile(data->tif,data->buffer,(tmsize_t)m)!=(tmsize_t)m)
               ^
    873. 			return(0);
    874. 		data->buffercurrentbyte=data->buffer;

libtiff/tif_jpeg.c:877:3: Binary operation: ([1, +oo] - [0, 2147483647]):unsigned64 by call to `JPEGFixupTagsSubsamplingReadWord` 
    875. 		data->bufferbytesleft=m;
    876. 		data->fileoffset+=m;
    877. 		data->filebytesleft-=m;
           ^
    878. 	}
    879. 	*result=*data->buffercurrentbyte;
