2003.12.30 21:29 "[Tiff] Win32 TIFFRealloc bug", by Larry Grill

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

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 V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517