Ticket #2797 (closed defect: fixed)
GDALOpenShared may crashes if dataset description is not the dataset filename
| Reported by: | ftrastour | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.1 |
| Component: | GDAL_Raster | Version: | 1.6.0 |
| Severity: | normal | Keywords: | |
| Cc: | warmerdam |
Description
GDALOpenShared crashes when called twice on the same dataset if the string returned by GetDescription? is not the filename used to open the dataset.
GDALOpenShared sometimes uses the filename to register a dataset :
*** gdaldataset.cpp/line 2017
sStruct.pszDescription = (char*) pszFilename;
and sometimes the string returnd by GetDescription? :
*** gdaldataset.cpp/line 1031
psStruct->pszDescription = CPLStrdup(GetDescription?());
Change History
Note: See
TracTickets for help on using
tickets.
