Opened 15 years ago
Closed 15 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)
Change History (2)
by , 15 years ago
Attachment: | vfk_ticket3329.patch added |
---|
comment:1 by , 15 years ago
Milestone: | → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | unspecified → svn-trunk |
Note:
See TracTickets
for help on using tickets.
The patch seems to be OK. Thanks, committed in r18566.