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
August 2010

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

2010.08.22 13:26 "memory error", by Rajat Varma
2010.08.23 13:42 "Re: memory error", by Edward Lam
2010.08.23 15:02 "Re: memory error", by Rajat Varma
2010.08.23 15:15 "Re: memory error", by Scott Ribe
2010.08.23 15:17 "Re: memory error", by Bob Friesenhahn
2010.08.23 15:27 "Re: memory error", by Rajat Varma

2010.08.23 13:42 "Re: memory error", by Edward Lam

On 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