Opened 16 years ago

Closed 16 years ago

#2395 closed defect (fixed)

GPX &KML drivers read the whole content of a big non-GPX/KML file

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.6.0
Component: OGR_SF Version: 1.5.0
Severity: normal Keywords: gpx kml big file
Cc: Mateusz Łoskot, warmerdam

Description

A file filled with 'aaaaaa', let's say 200MB, will be entirely read and scanned by the GPX driver. At least true, with Expat 1.95.8.

The opening logic must be made safer.

Change History (2)

comment:1 by Even Rouault, 16 years ago

Keywords: kml added
Summary: GPX driver reads the whole content of a big non-GPX fileGPX &KML drivers read the whole content of a big non-GPX/KML file

The same also applies for KML. Not surprising, GPX was pasted from it...

comment:2 by Even Rouault, 16 years ago

Milestone: 1.6.0
Resolution: fixed
Status: newclosed
Version: unspecified1.5.0

Fixed in r14570 for GPX and KML.

The next driver trying to read the whole file is AVCBin. This was already reported as #1989.

Note: See TracTickets for help on using tickets.