Ticket #3209 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

GRIB detection not thread safe

Reported by: nowakpl Owned by: 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

Changed 4 years ago by rouault

  • cc warmardam added
  • owner changed from warmerdam to rouault
  • status changed from new to assigned

Changed 4 years ago by rouault

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to 1.6.3

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

Note: See TracTickets for help on using tickets.