[Fdo-trac] [fdo-trac] #884: Missing failure check in OGR Provider OgrSpatialContextReader::GetExtent()

FDO trac_fdo at osgeo.org
Thu Mar 27 02:59:20 PDT 2014


#884: Missing failure check in OGR Provider OgrSpatialContextReader::GetExtent()
--------------------------+-------------------------------------------------
   Reporter:  gabrimonfa  |       Owner:  gregboone
       Type:  defect      |      Status:  new      
   Priority:  major       |   Milestone:  3.8.0    
  Component:  FDO API     |     Version:  3.8.0    
   Severity:  3           |    Keywords:           
External_id:              |  
--------------------------+-------------------------------------------------
 In OGR Provider, file OgrProvider.cpp, line 664, in function FdoByteArray*
 OgrSpatialContextReader::GetExtent())

 {{{
 /*OGRErr err =*/
 m_connection->GetOGRDataSource()->GetLayer(m_nIndex)->GetExtent(&e, TRUE);
 }}}

 than e is used without any check.

 It would be safer to check for a OGR failure and in case throws the
 appropriate exception.

-- 
Ticket URL: <https://trac.osgeo.org/fdo/ticket/884>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list