Ticket #1500 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Thread safety broken in GTIF driver

Reported by: scott@agi.com Assigned to: 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

02/26/07 13:41:04 changed by warmerdam

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.