Opened 11 years ago

Closed 11 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 Changed 11 years ago by dron

Milestone: 1.5.1
Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.