Ticket #1907 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

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

Change History

Changed 6 years ago by warmerdam

Problem .aux file.

Changed 6 years ago 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).

Changed 6 years ago by warmerdam

added regression test (r12393) in trunk.

Note: See TracTickets for help on using tickets.