Opened 11 years ago
Closed 4 years ago
#884 closed defect (fixed)
Missing failure check in OGR Provider OgrSpatialContextReader::GetExtent()
Reported by: | gabrimonfa | Owned by: | gregboone |
---|---|---|---|
Priority: | major | Milestone: | 3.8.0 |
Component: | FDO API | Version: | 3.8.0 |
Severity: | 3 | Keywords: | |
Cc: | External ID: |
Description
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.
Note:
See TracTickets
for help on using tickets.