2010.08.22 13:26 "[Tiff] memory error", by Rajat Varma

2010.08.22 13:26 "[Tiff] memory error", by Rajat Varma

Hi,

I am using the tiff library version 3.9.4 on suse 11.2. There are programs I wrote many years ago using versions of libtiff from the mid 90s. I have been having trouble executing some of these programs. I recently got to use valgrind on one of my programs and got the following error messages.

==25472== Invalid read of size 4

==25472==    at 0x404CCEB: TIFFFindFieldInfo (tif_dirinfo.c:753)
==25472==    by 0x404A843: TIFFVGetField (tif_dir.c:971)
==25472==    by 0x404B33A: TIFFGetField (tif_dir.c:957)
==25472==    by 0x8048B3D: main (in

/home/rajat/Desktop/spots_program/spotsprogram) ==25472== Address 0x284 is not stack'd, malloc'd or (recently) free'd

Could anyone have an insight as to what kind of problems in the code could give rise to such errors?

thanks

rajat