| 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 |
Thread2003.12.31 09:53 "Re: Win32 TIFFRealloc bug", by Andrey KiselevOn 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 |
|||||||