Opened 16 years ago
Closed 16 years ago
#2190 closed defect (fixed)
PNMDataset False Positive
Reported by: | rsoconnor | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.5 |
Component: | GDAL_Raster | Version: | 1.4.0 |
Severity: | normal | Keywords: | pnm |
Cc: |
Description
GDAL tried to open up an ENVI file as a PNMDataset incorrectly and subsequently crashed in the GDALOpen function. It crashed in the "isspace" function because an assertion failed in pnmdataset.cpp
Admittedly this is a rare occurance and only happened once after opening up thousands of ENVI files.
The PNMDataset::Identify function may need to be more strict in its verification of files types.
My short term solution was just to deregister the PNM driver.
Attachments (2)
Change History (6)
follow-up: 3 comment:1 by , 16 years ago
comment:2 by , 16 years ago
by , 16 years ago
by , 16 years ago
Attachment: | test.dat.hdr added |
---|
comment:3 by , 16 years ago
Replying to rouault:
Could you possibly attach your ENVI file, or just the few first bytes ?
Attached is the first 4k of the image file and the original ENVI header file.
comment:4 by , 16 years ago
Keywords: | pnm added |
---|---|
Milestone: | → 1.4.5 |
Resolution: | → fixed |
Status: | new → closed |
Version: | unspecified → 1.4.0 |
Could you possibly attach your ENVI file, or just the few first bytes ?