Home
last modified time | relevance | path

Searched refs:td_stripoffset (Results 1 – 11 of 11) sorted by relevance

/libtiff-4.0.7/libtiff/
H A Dtif_write.c542 td->td_stripoffset = (uint64 *) in TIFFSetupStrips()
546 if (td->td_stripoffset == NULL || td->td_stripbytecount == NULL) in TIFFSetupStrips()
552 _TIFFmemset(td->td_stripoffset, 0, td->td_nstrips*sizeof (uint64)); in TIFFSetupStrips()
613 if (tif->tif_dir.td_stripoffset == NULL && !TIFFSetupStrips(tif)) { in TIFFWriteCheck()
687 new_stripoffset = (uint64*)_TIFFrealloc(td->td_stripoffset, in TIFFGrowStrips()
700 td->td_stripoffset = new_stripoffset; in TIFFGrowStrips()
702 _TIFFmemset(td->td_stripoffset + td->td_nstrips, in TIFFGrowStrips()
723 if (td->td_stripoffset[strip] == 0 || tif->tif_curoff == 0) { in TIFFAppendToStrip()
727 && td->td_stripoffset[strip] != 0 in TIFFAppendToStrip()
737 if (!SeekOK(tif, td->td_stripoffset[strip])) { in TIFFAppendToStrip()
[all …]
H A Dtif_read.c108 read_offset = td->td_stripoffset[strip] in TIFFFillStripPartial()
399 if (!SeekOK(tif, td->td_stripoffset[strip])) { in TIFFReadRawStrip1()
425 ma=(tmsize_t)td->td_stripoffset[strip]; in TIFFReadRawStrip1()
568 td->td_stripoffset[strip] > (uint64)tif->tif_size - bytecount) { in TIFFFillStrip()
580 (unsigned __int64) tif->tif_size - td->td_stripoffset[strip], in TIFFFillStrip()
588 (unsigned long long) tif->tif_size - td->td_stripoffset[strip], in TIFFFillStrip()
595 tif->tif_rawdata = tif->tif_base + (tmsize_t)td->td_stripoffset[strip]; in TIFFFillStrip()
729 if (!SeekOK(tif, td->td_stripoffset[tile])) { in TIFFReadRawTile1()
759 ma=(tmsize_t)td->td_stripoffset[tile]; in TIFFReadRawTile1()
889 td->td_stripoffset[tile] > (uint64)tif->tif_size - bytecount) { in TIFFFillTile()
[all …]
H A Dtif_dirread.c3959 && tif->tif_dir.td_stripoffset[0] != 0 in TIFFReadDirectory()
4019 if (tif->tif_dir.td_stripoffset[strip - 1] > in TIFFReadDirectory()
4020 tif->tif_dir.td_stripoffset[strip]) { in TIFFReadDirectory()
4349 td->td_stripbytecount[strip] = filesize - td->td_stripoffset[strip]; in EstimateStripByteCounts()
5512 offset = td->td_stripoffset[0]; in ChopUpSingleUncompressedStrip()
5580 _TIFFfree(td->td_stripoffset); in ChopUpSingleUncompressedStrip()
5582 td->td_stripoffset = newoffsets; in ChopUpSingleUncompressedStrip()
5597 if( td->td_stripoffset != NULL ) in _TIFFFillStrilesInternal()
5604 td->td_nstrips,&td->td_stripoffset)) in _TIFFFillStrilesInternal()
5624 if (tif->tif_dir.td_stripoffset[strip - 1] > in _TIFFFillStrilesInternal()
[all …]
H A Dtif_dir.h98 uint64* td_stripoffset; member
H A Dtif_print.c670 (unsigned __int64) td->td_stripoffset[s], in TIFFPrintDirectory()
675 (unsigned long long) td->td_stripoffset[s], in TIFFPrintDirectory()
H A Dtif_dir.c969 *va_arg(ap, uint64**) = td->td_stripoffset; in _TIFFVGetField()
1230 CleanupField(td_stripoffset); in TIFFFreeDirectory()
H A Dtif_dirwrite.c197 if (tif->tif_dir.td_stripoffset == NULL) in TIFFCheckpointDirectory()
556 if (tif->tif_dir.td_stripoffset != NULL && in TIFFWriteDirectorySec()
557 …Long8Array(tif,&ndir,dir,TIFFTAG_STRIPOFFSETS,tif->tif_dir.td_nstrips,tif->tif_dir.td_stripoffset)) in TIFFWriteDirectorySec()
562 …gLong8Array(tif,&ndir,dir,TIFFTAG_TILEOFFSETS,tif->tif_dir.td_nstrips,tif->tif_dir.td_stripoffset)) in TIFFWriteDirectorySec()
H A Dtif_jpeg.c740 || tif->tif_dir.td_stripoffset == NULL in JPEGFixupTagsSubsampling()
760 m.fileoffset=tif->tif_dir.td_stripoffset[0]; in JPEGFixupTagsSubsampling()
H A Dtif_ojpeg.c1972 || sp->tif->tif_dir.td_stripoffset == NULL in OJPEGReadBufferFill()
1980 sp->in_buffer_file_pos=sp->tif->tif_dir.td_stripoffset[sp->in_buffer_next_strile]; in OJPEGReadBufferFill()
/libtiff-4.0.7/contrib/pds/
H A Dtif_pdsdirread.c324 if (td->td_stripoffset[i] + td->td_stripbytecount[i] > filesize) in EstimateStripByteCounts()
326 filesize - td->td_stripoffset[i]; in EstimateStripByteCounts()
1064 uint32 offset = td->td_stripoffset[0]; in ChopUpSingleUncompressedStrip()
1120 _TIFFfree(td->td_stripoffset); in ChopUpSingleUncompressedStrip()
1122 td->td_stripoffset = newoffsets; in ChopUpSingleUncompressedStrip()
/libtiff-4.0.7/
H A DChangeLog131 * libtiff/tif_dirwrite.c: avoid null pointer dereference on td_stripoffset
1203 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
3458 to new tstrile_t, types of td_stripoffset and td_stripbytecount to