Opened 17 years ago

Last modified 17 years ago

#1500 closed defect (fixed)

Thread safety broken in GTIF driver

Reported by: scott@… Owned by: warmerdam
Priority: highest Milestone:
Component: default Version: 1.4.0
Severity: major Keywords:
Cc:

Description

The functions GTIFWktFromMemBuf() and GTIFMemBufFromWkt() in frmts/gtiff/gt_wkt_srs.cpp are using statically defined filenames which is not thread safe.  Modified local copy to use tempnam()/_tempnam() and free() to make thread safe.

Could you update the FAQ with the list of vetted drivers?

Change History (1)

comment:1 by warmerdam, 17 years ago

Scott,

I have corrected this in trunk and 1.4.x branch to use the thread id as 
part of the filename.  

  http://svn.osgeo.org/svn/gdal/trunk/gdal/frmts/gtiff/gt_wkt_srs.cpp

There isn't really a vetted list for driver thread safe drivers in a
meaningful sense, though I have done some review and testing of the
geotiff, and HFA drivers. 
Note: See TracTickets for help on using tickets.