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
October 2004

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

2004.10.14 07:58 "WIN32 _TIFFrealloc() bug?", by Ville Herva
2004.10.15 20:01 "WIN32 _TIFFrealloc() bug?", by Ville Herva
2004.10.15 20:09 "Re: WIN32 _TIFFrealloc() bug?", by Frank Warmerdam
2004.10.15 21:47 "Re: WIN32 _TIFFrealloc() bug?", by Ville Herva
2004.10.16 07:52 "Re: WIN32 _TIFFrealloc() bug?", by Andrey Kiselev
2004.10.17 16:47 "Re: WIN32 _TIFFrealloc() bug?", by Larry Grill
2004.10.17 17:26 "Re: WIN32 _TIFFrealloc() bug?", by Ville Herva

2004.10.17 17:26 "Re: WIN32 _TIFFrealloc() bug?", by Ville Herva

On Sun, Oct 17, 2004 at 11:47:40AM -0500, you [Larry Grill] wrote:
> I thought this one was fixed in the general release some time ago. If you
> search the message archive you should find the same topic from me, 

(I'm sorry about the duplicated post - I originally posted the message
without subscribing to the list, and the post was left waiting for a
moderator approval. I waited a while and then subscribed and reposted,
thinking that the moderator probably is busy and hoped that he'd reject the
earlier message since the other one has already reached the list.)

> but if you change the TIFFrealloc method this way, it will be fine. This
> is corrected in the 3.7 release.
 
Yes, the 3.7.0 release appears to contain the fix.

> tdata_t
> _TIFFrealloc(tdata_t p, tsize_t s)
> {
>   void* pvTmp;
>   tsize_t old;
> 
>   if(p==NULL)
>     return ((tdata_t)GlobalAlloc(GMEM_FIXED, s));

This is better than my fix (not that my fix wouldn't work).


thanks,

-- v -- 

v@iki.fi