[Gdal-dev] The GPX driver in trunk hangs

Ari Jolma ari.jolma at tkk.fi
Wed Nov 14 12:59:37 EST 2007


Frank Warmerdam kirjoitti:
> Ari,
>
> I have committed a change to ogrgpxdatasource.cpp so that if VSIFReadL()
> returns zero it will exit the reading loop instead of hanging.  I think
> this would also have been a problem with zero length files.

Yep, works now (at least exists the loop).

Ari

>
> Even,
>
> Could you review OGRGPXDataSource::Open() and see if it can be made 
> safer?
> In particular, it looks to me like it will slurp up any XML file and 
> parse
> it without verifying the format till it is done which could be very 
> expensive.
>
> Best regards,


-- 
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka / Geoinformation and positioning
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma





More information about the gdal-dev mailing list