Ticket #1907 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Endless loop in reading a bad aux file

Reported by: warmerdam Assigned to: 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

F0116231.aux (6.7 kB) - added by warmerdam on 10/12/07 23:39:32.
Problem .aux file.

Change History

10/12/07 23:39:32 changed by warmerdam

  • attachment F0116231.aux added.

Problem .aux file.

10/12/07 23:46:26 changed by warmerdam

  • status changed from new to closed.
  • resolution set to fixed.

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).

10/12/07 23:54:40 changed by warmerdam

added regression test (r12393) in trunk.