Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1907 closed defect (fixed)

Endless loop in reading a bad aux file

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: HFA
Cc: gaopeng

Description

The attached .aux file has a "loop" in the HFAEntry's in the file which causes GDAL to hang building an endless list of HFAEntries.

Attachments (1)

F0116231.aux (6.7 KB ) - added by warmerdam 17 years ago.
Problem .aux file.

Download all attachments as: .zip

Change History (3)

by warmerdam, 17 years ago

Attachment: F0116231.aux added

Problem .aux file.

comment:1 by warmerdam, 17 years ago

Resolution: fixed
Status: newclosed

I have prepared a patch and applied to trunk as r12390. This patch really only addresses the case of a loop within one set of sibling HFAEntries as occurs in this .aux file. A parent/child or other more distance loop could still result in a similar hang but broader loop testing could get expensive. I'm really not clear how a file with this particular corruption ever got created.

Patch also back applied in 1.4 branch (r12391) and 1.4-esri branch (r12392).

comment:2 by warmerdam, 17 years ago

added regression test (r12393) in trunk.

Note: See TracTickets for help on using tickets.