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
November 2009

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

2009.11.29 17:02 "Reentrancy patches", by Adam Goode
2009.11.29 17:02 "[PATCH 1/3] Make TIFFGetFieldDefaulted of WhitePoint reentrant", by Adam Goode
2009.11.29 17:02 "[PATCH 2/3] Make TIFFGetFieldDefaulted of ReferenceBlackWhite reentrant", by Adam Goode
2009.11.29 17:02 "[PATCH 3/3] Eliminate static buffer for default YCbCrCoefficients", by Adam Goode
2009.11.29 18:17 "Re: Reentrancy patches", by Bob Friesenhahn

2009.11.29 17:02 "Reentrancy patches", by Adam Goode

Hi,

In December 2005, several built in fields were converted to custom
fields. This worked ok in general except for array-based fields
that had defaults. In this case, the 2005 patches made
TIFFGetFieldDefaulted return static buffers for WhitePoint,
ReferenceBlackWhite, and YCbCrCoefficients. This made libtiff
non-reentrant in a way that had formerly been reentrant.

I have created 3 patches that revert some of the changes from Dec 2005.
This is not the only way to fix the reentrancy problems, but it is
fairly simple and I basically just used code pulled out of old
CVS, so it is more likely to be correct.

(Please let me know if I should stop sending patches like this. I could
put these things into Bugzilla just as well.)


Thanks,

Adam