Opened 7 years ago

Closed 7 years ago

#4003 closed defect (fixed)

LIBKML driver ingests whole .zip file into memory even if it is not a valid KMZ

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.8.1
Component: OGR_SF Version: 1.8.0
Severity: normal Keywords: libkml
Cc:

Description

The LIBKML driver tries to recognize .zip files as kmz files. So it loads the whole zip file into memory before passing it to libkml. However all zip files are not valid kmz files, so ogrinfo can spend a lot of time for nothing. The fix is to scan the filenames of the zip file first to search for a .kml file inside it.

Change History (1)

comment:1 Changed 7 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Fixed in trunk (r21982) and in branches/1.8 (r21983)

Note: See TracTickets for help on using tickets.