Opened 17 years ago

Closed 17 years ago

#1787 closed defect (fixed)

kml driver rev22, description tag can still fail with embedded HTML tags

Reported by: darkblueB Owned by: Didge
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords: kml
Cc: Mateusz Łoskot, warmerdam

Description

in some parsing contexts, the parser can be derailed by legal HTML tags inside of a kml <description> tag.

test file enclosed. To verify that the test file is valid XML, run an Expat engine example app, like outline.c and observe there is no error.

Attachments (1)

soc_min.kml (1.3 KB ) - added by darkblueB 17 years ago.

Download all attachments as: .zip

Change History (3)

by darkblueB, 17 years ago

Attachment: soc_min.kml added

comment:1 by warmerdam, 17 years ago

Cc: Mateusz Łoskot warmerdam added
Milestone: 1.5.0
Owner: changed from warmerdam to Didge

comment:2 by Didge, 17 years ago

Resolution: fixed
Status: newclosed

The code calculated the depth wrong, which leaded to a negativ depth. And therefor the code for printing the structure ended in a (nearly) endless loop. I fixed it and will commit it soon. Thanx for your tests!

Note: See TracTickets for help on using tickets.