Opened 11 years ago

Closed 6 years ago

#4901 closed defect (fixed)

USGSDEM driver: file not properly decoded

Reported by: Kosta Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.9.2
Severity: normal Keywords: USGSDEM
Cc: bdiscoe

Description (last modified by Kosta)

When reading values from certain DEM files (see attachment) GDAL runs into an infinite (or perhaps only a very-long running?) loop; e.g.:

gdal_translate -of GTiff Benicia.dem Benicia.tif

Other files of that format with the same file size only need seconds to be processed.

System: Win 7 Enterprise (64-bit)

Attachments (2)

Benicia.dem.zip (143.8 KB ) - added by Kosta 11 years ago.
sample file for which GDAL runs into an infinite loop
Novato.dem.zip (156.3 KB ) - added by Kosta 11 years ago.
sample file for which GDAL runs into an infinite loop

Download all attachments as: .zip

Change History (11)

by Kosta, 11 years ago

Attachment: Benicia.dem.zip added

sample file for which GDAL runs into an infinite loop

by Kosta, 11 years ago

Attachment: Novato.dem.zip added

sample file for which GDAL runs into an infinite loop

comment:1 by Kosta, 11 years ago

Description: modified (diff)

comment:2 by Kosta, 11 years ago

Summary: DEM driver: infinite loopUSGSDEM driver: infinite loop

comment:3 by warmerdam, 11 years ago

Problem confirmed with trunk, investigating.

comment:4 by warmerdam, 11 years ago

Cc: bdiscoe added
Keywords: USGSDEM added

The 4th profile of the Benicia.dem file claims to have 256 values but instead has on the order of 316 which seriously confuses the profile by profile reader.

Adding Ben Discoe who might have suggestions on how to cope with such a file.

comment:5 by Even Rouault, 11 years ago

r25675 "USGSDEM: avoid endless loop while reading a dataset that we can't read properly yet. This is a band-aid for the issue of #4901"

comment:6 by Jukka Rahkonen, 9 years ago

The ticket was about GDAL going to infinite loop. If that does not happen any more, can the ticket be closed?

comment:7 by Even Rouault, 9 years ago

This should fix the infinie loop, but the file will not be properly decoded.

comment:8 by Even Rouault, 6 years ago

Summary: USGSDEM driver: infinite loopUSGSDEM driver: file not properly decoded
Note: See TracTickets for help on using tickets.