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
July 2006

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

2006.07.25 15:43 "Handle not close causing memory leak with libtiff 3.8.2", by Thierry Pierron
2006.07.25 17:42 "Re: Handle not close causing memory leak with libtiff 3.8.2", by Thierry Pierron
2006.07.25 18:27 "Re: Handle not close causing memory leak with libtiff 3.8.2", by Frank Warmerdam
2006.07.25 19:28 "Re: Handle not close causing memory leak with libtiff 3.8.2", by Edward Lam
2006.07.25 18:38 "Re: Handle not close causing memory leak with libtiff 3.8.2", by Thierry Pierron

2006.07.25 18:27 "Re: Handle not close causing memory leak with libtiff 3.8.2", by Frank Warmerdam

Thierry Pierron wrote:
> Hi all,
> 
> Think I found a very stupid mistake in the file tif_msdos.c of libtiff 
> v3.8.2, line 114 :
> 
>     return (TIFFFdOpen(fd, name, mode));
> 
> Which leave its descriptior "fd" opened if trying to open a file that is 
> not a TIFF. Fix is obvious :
> 
>     TIFF * ret = TIFFFdOpen(fd, name, mode);
> 
>     if (ret == NULL) close(fd);
> 
>     return ret;
> 

Thierry,

I have patched this in CVS.  I never imagined anyone was still using
tif_msdos.c.

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 OSGF, http://osgeo.org