Opened 16 years ago
Closed 16 years ago
#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, Mateusz Łoskot |
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 (1)
comment:1 by , 16 years ago
Milestone: | → 1.5.1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed both in trunk and in 1.5 brunch with revision r13431.