Opened 14 years ago

Closed 14 years ago

#3329 closed defect (fixed)

[VFK - Patch] Patch to be more robust against corrupted data

Reported by: Even Rouault Owned by: martinl
Priority: normal Milestone: 1.7.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: VFK
Cc:

Description

Martin,

I've attached to this ticket a patch that add more checks when parsing the text read from VFK file, to be more robust against corrupt or hostile files. It works on the autotest sample but I let you test more and apply if you confirm it doesn't break things with more complex data you might have. Note it also fixes a logical error to detect end-of-line :

*poChar != '\r' && *(poChar+1) != '\n'

should be :

!(*poChar == '\r' && *(poChar+1) == '\n')

Attachments (1)

vfk_ticket3329.patch (9.3 KB ) - added by Even Rouault 14 years ago.

Download all attachments as: .zip

Change History (2)

by Even Rouault, 14 years ago

Attachment: vfk_ticket3329.patch added

comment:1 by martinl, 14 years ago

Milestone: 1.7.0
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

The patch seems to be OK. Thanks, committed in r18566.

Note: See TracTickets for help on using tickets.