Bug report #3909
QgsVectorLayer::vectorType - incomplete return path
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Gary Sherman | ||
Category: | Vectors | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 13933 |
Description
File qgis/src/gui/qgsvectorlayer.cpp, line 1250
In the member function !QgsVectorLayer::vectorType, not all control paths return a value.
Returned value of type of QGis::VectorType can be uninitialized -> undefined behaviour.
History
#1 Updated by Gavin Macaulay - over 18 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Fixed in SVN f8228bc9 (SVN r5280)
#2 Updated by Anonymous over 15 years ago
Milestone Version 0.8 deleted