GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
473 stars 126 forks source link

v900 format inappropriately uses assertions. #1291

Open tsteven4 opened 2 months ago

tsteven4 commented 2 months ago

At least some of the assertions in v900 can be triggered by malformed input

v900.cc:222: virtual void V900Format::read(): Assertion `line.adv.comma13==','' failed.

INDEX,TAG,DATE,TIME,LATITUDE N/S,LONGITUDE E/W,HEIGHT,SPEED,HEADING,FIX MODE,VALID,PDOP,HDOP,VDOP,VOX
2419,T,090204,063821,31.769598N,035.208829E,787,20,318,3D,SPS ,1.4,1.1,0.9,
2420,T,090204,063822,31.769621N,035.208773E,787,22,295,3D,SPS ,1.3,1.0x0.8,
2421,T,090204,063823,31.769616N,035.208683E,787,27,266,3D,SPS ,1.3,1.0,0.8,