Bug report #3909

QgsVectorLayer::vectorType - incomplete return path

Added by Mateusz Loskot - over 18 years ago. Updated about 15 years ago.

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 about 15 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF