| 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 |
Thread2010.08.23 13:42 "Re: memory error", by Edward LamOn 8/22/2010 9:26 AM, Rajat Varma wrote: > ==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? My knee jerk reaction is that you're giving TIFFGetField() invalid return memory. Make sure you're giving it pointers to the right types/sizes according to your field: http://libtiff.maptools.org/man/TIFFGetField.3tiff.html Regards, -Edward |
|||||||