Opened 16 years ago

Closed 16 years ago

#2396 closed defect (fixed)

FITS driver crashes on opening when metadata is found

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: default Version: 1.5.0
Severity: normal Keywords: fits metdata
Cc: sperkins

Description

The bad sequence is the following :

  • nBands set
  • metadata set to the dataset --> make GDALPamDataset crashes
  • bands are added

The correct sequence is rather :

  • nBands set
  • bands are added
  • metadata set to the dataset

I'll also fix 2 minor Valgrind warnings.

Change History (3)

comment:1 by Even Rouault, 16 years ago

For the record, the test file that triggers the crash is available at : http://netghost.narod.ru/gff/sample/images/fits/split.fit

comment:2 by Even Rouault, 16 years ago

Fixed in trunk in r14584

comment:3 by Even Rouault, 16 years ago

Milestone: 1.5.3
Resolution: fixed
Status: newclosed

Backported in branches/1.5 in r14642

Note: See TracTickets for help on using tickets.