AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.11.21 18:52 "tag content size limit?", by Frank Warmerdam
2007.11.22 08:05 "Re: tag content size limit?", by Rob Van Den Tillaart
2007.12.08 05:51 "dpi settings", by Ron Croonenberg
2007.12.08 14:56 "Re: dpi settings", by Bob Friesenhahn
2007.12.08 18:34 "Re: dpi settings", by Ron Croonenberg
2007.12.08 20:39 "another rookie question", by Ron Croonenberg
2007.12.09 03:02 "Re: dpi settings", by Graeme Gill
2007.12.09 14:05 "Re: dpi settings", by Toby Thain
2007.12.09 14:44 "Re: dpi settings", by Graeme Gill
2007.12.09 15:03 "Re: dpi settings", by Toby Thain
2007.12.09 15:58 "Re: dpi settings", by Bob Friesenhahn
2007.12.09 16:04 "Re: dpi settings", by Toby Thain
2007.12.09 16:33 "Re: dpi settings", by Andrey Kiselev
2007.12.09 17:15 "Re: dpi settings", by Bob Friesenhahn
2007.12.09 18:39 "Re: dpi settings", by Andrey Kiselev
2007.12.09 18:54 "Re: dpi settings", by Toby Thain
2007.12.09 19:46 "Re: dpi settings", by Bob Friesenhahn
2007.12.10 01:01 "Re: dpi settings", by Graeme Gill
2007.12.10 01:43 "Re: dpi settings", by Toby Thain
2007.12.10 02:49 "Re: dpi settings", by Graeme Gill
2007.12.10 04:42 "Re: dpi settings", by Ron Croonenberg
2007.12.10 06:21 "Re: dpi settings", by Toby Thain
2007.12.10 02:10 "Re: dpi settings", by Ron Croonenberg
2007.12.10 02:54 "Re: dpi settings", by Graeme Gill

2007.11.22 08:05 "Re: tag content size limit?", by Rob Van Den Tillaart

Hi,

If I understand correctly the code lines you refering to are about the
number of Directory Entries in an IFD. As far as I know this count is
not related to the number of strips. 

Or could it be some unwanted sideeffect? overflow or overwritten memory
buffer? Does the value of tdir_count make sense?


>From the point of strip administration I see the following logical
restrictions:

	1 <= StripByteCounts <= RowsPerStrip * ImageWidth

	1 <= # RowsPerStrip <= ImageLength
	recommendation each strip is about 8K (6.0 spec page 39) but 
	that seems to me a historical practical buffersize.

	1 <= # StripOffsets < FileSize/StripByteCounts 

Furthermore all offsets should comply to 

	TiffHeadersize < offset < filesize

Conclusion no reason for some 4MB limit,

sofar my 2 cents,
rob tillaart








> -----Original Message-----
> From: tiff-bounces@lists.maptools.org 
> [mailto:tiff-bounces@lists.maptools.org] On Behalf Of Frank Warmerdam
> Sent: woensdag 21 november 2007 19:53
> To: TIFF mailing list
> Subject: [Tiff] tag content size limit?
> 
> Joris,
> 
> I have run into problems with my attempts to create a TIFF file with
> 1333333 strips.  Attempts to read the the stripoffsets tag 
> results in an error in TIFFReadDirEntryErr() with this logic:
> 
> 	if ((uint64)(4*1024*1024/typesize)<direntry->tdir_count)
> 		return(TIFFReadDirEntryErrSizesan);
> 	if ((uint64)(4*1024*1024/desttypesize)<direntry->tdir_count)
> 		return(TIFFReadDirEntryErrSizesan);
> 
> The logic seems to assume that any tag contents larger than 
> 4MB likely implies a corrupt file.  Is there a particular 
> reason we should put in place such a restriction?  Should the 
> restriction be removed?  Relaxed?
> (perhaps upped to any tag value larger than 1GB is likely 
> corruption?  or any tag value larger than the file itself is?
> 
> Best regards,
> -- 
> ---------------------------------------+----------------------
> ----------
> ---------------------------------------+------
> I set the clouds in motion - turn up   | Frank Warmerdam, 
> warmerdam@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGeo, 
> http://osgeo.org
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
> 
> 

This message and attachment(s) are intended solely for use by the addressee
and may contain information that is privileged, confidential or otherwise
exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited.

If you have received this communication in error, please notify the sender
immediately by telephone and with a 'reply' message.
  
Thank you for your co-operation.