Changeset 13431

Show
Ignore:
Timestamp:
12/21/07 12:39:23 (5 months ago)
Author:
dron
Message:

Fixed possible NULL-pointer dereferencing in ECWDataset::Open()
as per bug #2118

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/frmts/ecw/ecwdataset.cpp

    r12462 r13431  
    10851085          VSIIOStream * poUnderlyingIOStream =  
    10861086              ((VSIIOStream *)(poFileView->GetStream())); 
    1087           poUnderlyingIOStream->nFileViewCount++; 
     1087 
     1088          if ( poUnderlyingIOStream ) 
     1089            poUnderlyingIOStream->nFileViewCount++; 
    10881090 
    10891091          if ( poIOStream != poUnderlyingIOStream )