Jane,
This is strange. FITS2NDF calls a FITSIO routine which returns the
number of headers. FITS2NDF uses this to create an array of flags to
indicate which headers need to be copied to the NDF's FITS airlock, as
some like the HISTORY are used to create the standard NDF components.
For the failing file the FITSIO call returns a count of 426 headers.
However, it would appear that this number is too small, fitsverify for
example reports 427 headers. FITS2NDF carries on to the end exceeding
the allocated array bounds by one and crashes when the flag array
workspace is freed.
Dumping the file I see no hidden characters. Comparing the two
versions, the working one merely has the blank line before the END
header removed.
I have sent details to Bill Pence for comment.
Malcolm
--
Scanned by iCritical.
----
Starlink User Support list
For list configuration, including subscribing to and unsubscribing from the list, see
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
|