Opened 11 years ago

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

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

Fixed in trunk in r14584

comment:3 Changed 11 years ago by Even Rouault

Milestone: 1.5.3
Resolution: fixed
Status: newclosed

Backported in branches/1.5 in r14642

Note: See TracTickets for help on using tickets.