Ticket #2396 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

FITS driver crashes on opening when metadata is found

Reported by: rouault Assigned to: 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

05/31/08 03:47:19 changed by rouault

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

05/31/08 03:50:38 changed by rouault

Fixed in trunk in r14584

06/06/08 14:15:26 changed by rouault

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.5.3.

Backported in branches/1.5 in r14642