Opened 6 years ago

Closed 5 months 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 6 years ago.
sample file for which GDAL runs into an infinite loop
Novato.dem.zip (156.3 KB) - added by Kosta 6 years ago.
sample file for which GDAL runs into an infinite loop

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by Kosta

Attachment: Benicia.dem.zip added

sample file for which GDAL runs into an infinite loop

Changed 6 years ago by Kosta

Attachment: Novato.dem.zip added

sample file for which GDAL runs into an infinite loop

comment:1 Changed 6 years ago by Kosta

Description: modified (diff)

comment:2 Changed 6 years ago by Kosta

Summary: DEM driver: infinite loopUSGSDEM driver: infinite loop

comment:3 Changed 6 years ago by warmerdam

Problem confirmed with trunk, investigating.

comment:4 Changed 6 years ago by warmerdam

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 Changed 6 years ago by Even Rouault

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 Changed 4 years ago by Jukka Rahkonen

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

comment:7 Changed 4 years ago by Even Rouault

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

comment:8 Changed 7 months ago by Even Rouault

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