Ticket #2118 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[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

Changed 4 years ago by dron

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.5.1

Fixed both in trunk and in 1.5 brunch with revision r13431.

Note: See TracTickets for help on using tickets.