| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2011.01.10 17:53 "Re: [libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by Olivier PaquetOn 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 |
|||||||