Opened 13 years ago

Last modified 13 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:


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 Changed 13 years ago by warmerdam


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

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.