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
December 2003

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

2003.12.30 21:29 "Win32 TIFFRealloc bug", by Larry Grill
2003.12.31 09:53 "Re: Win32 TIFFRealloc bug", by Andrey Kiselev

2003.12.31 09:53 "Re: Win32 TIFFRealloc bug", by Andrey Kiselev

On Tue, Dec 30, 2003 at 03:29:51PM -0600, Larry Grill wrote:
> I finally dug into a Windows access violation that has been causing
> trouble here since 3.6.0. I noticed it happening on every TIFFOpen
> call.
> 
> The problem is that TIFFOpen eventually calls TIFFReadDirectory, which
> in turn calls TIFFRealloc. In the win32 code, the old mem pointer size
> is checked with the Win API call GlobalSize(ptr), which blows up if
> the pointer is null. I changed the win32.c TIFFRealloc code thusly and
> it cures the problem:

Problem fixed, thank you!

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517