Ticket #2118 (closed defect: fixed)
[PATCH] Possible NULL-pointer dereferencing in ECWDataset::Open()
| Reported by: | dron | Owned by: | dron |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.1 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | warmerdam, mloskot |
Description
The following patch fixes possible NULL-pointer dereferencing problem in ECWDataset::Open():
Index: ecwdataset.cpp =================================================================== --- ecwdataset.cpp (revision 12462) +++ ecwdataset.cpp (revision 13426) @@ -1084,12 +1084,12 @@
VSIIOStream * poUnderlyingIOStream =
((VSIIOStream *)(poFileView->GetStream?()));
+ + if ( poUnderlyingIOStream )
poUnderlyingIOStream->nFileViewCount++;
if ( poIOStream != poUnderlyingIOStream )
- {
delete poIOStream;
- }
CPLReleaseMutex( hECWDatasetMutex );
Change History
Note: See
TracTickets for help on using
tickets.
