[QGIS-trac] [Quantum GIS] #3320: Delimited text plugin causes crash
Quantum GIS
qgis at qgis.org
Sat Dec 11 13:40:53 EST 2010
#3320: Delimited text plugin causes crash
---------------------------------------------------------+------------------
Reporter: ccrook | Owner: nobody
Type: patch | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.7.0
Component: Data Provider | Version: Trunk
Keywords: delimited text provider plugin | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
Following from message on qgis-user list at
http://lists.osgeo.org/pipermail/qgis-user/2010-December/010628.html
relating to QGis crash caused by delimited text plugin. This error
appears to be due to reading files with variable number of fields, which
is tested in the provider constructor function, but not in the nextFeature
function.
The attached patch should fix this. It takes a slightly different
approach to previously - instead of ignoring lines with the wrong number
of fields, it adds blank strings to ensure that there are the expected
number.
Also fixes a problem with line number counting.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3320>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list