Opened 12 years ago

Closed 12 years ago

#3209 closed defect (fixed)

GRIB detection not thread safe

Reported by: nowakpl Owned by: Even Rouault
Priority: high Milestone: 1.6.3
Component: default Version: unspecified
Severity: normal Keywords:
Cc: warmardam

Description

http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/grib/gribdataset.cpp#L363

You have a call to ReadSECT0(mds, &buff, &buffLen, -1, sect0, &gribLen, &version) that is using a not threads safe function errSprintf to return errors (for example when the file is not a grib file). This can cause problems for other file formats when opening datasets from multiple threads.

Change History (2)

comment:1 Changed 12 years ago by Even Rouault

Cc: warmardam added
Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:2 Changed 12 years ago by Even Rouault

Milestone: 1.6.3
Resolution: fixed
Status: assignedclosed

Fixed in trunk (r17959) and in branches/1.6 (r17960)

Note: See TracTickets for help on using tickets.