Opened 18 years ago
Last modified 9 years ago
#1209 closed defect
incorrect MapInfo style string causes system exception — at Version 1
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | mitab |
Cc: |
Description (last modified by )
Upon creating a new feature on a MapInfo layer, if the style string in the feature is invalid, the MapInfo driver will throw an exception instead of reporting an error. For example, the following string is only invalid by an extra space character after the comma: "SYMBOL(c:#000000, id:\"ogr-sym-1\")" and will cause a crash on the OGR_L_CreateFeature() call.
Change History (2)
by , 9 years ago
Attachment: | ogr_style_error.jml added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
I can reproduce the error with attached OpenJUMP file which has a faulty style string
SIMBOL(c:#000000, id:\"ogr-sym-1\")
System tolerates extra spaces nowadays so I had to introduce a bigger error.
Command "ogr2ogr -f "mapinfo file" ogrstyle.mif ogr_style_error.jml" makes ogr2ogr.exe to crash on Windows 7 without any error messages.
Tested with GDAL 2.0-dev