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
January 2011

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

2011.01.10 16:47 "[libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by <imol00@gmail.com>
2011.01.10 17:53 "Re: [libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by Olivier Paquet
2011.01.11 03:17 "Re: [libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by <imol00@gmail.com>

2011.01.10 17:53 "Re: [libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by Olivier Paquet

On Mon, Jan 10, 2011 at 11:47 AM, IMoL <imol00@gmail.com> wrote:
> If I'm reading the code correctly, tif->tif_mode & O_TRUNC in the if
> statement will always be false.  So shouldn't that be m & O_TRUNC?

It certainly looks like that was the intent. As it is written now,
there is a bogus attempt to read the header from the truncated file
which should fail for reasonable implementations of the read proc. I
don't think there would be any harm in "fixing" it but I'd appreciate
another set of eyes to look that over.

Olivier