-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oldfitdlm not working (opening/reading .fit files) #15
Comments
Probably later. You might have a chat with Keith in Fairbanks -- he has See you there! Cheers, On 26/05/2016 12:40 PM, egthomas wrote:
Dr Pavlo (Pasha) Ponomarenko Professional Research Associate Mailing address: ORCID ID: 0000-0001-8407-0193
I think it’s much more interesting to live Richard FeynmanThe object of life is not to be on the side Marcus Aurelius Augustus |
Anyone else have a chance to look at this? I'd like to be able to add .fit compatibility for the IDL gridding without resorting to fittofitacf or circumventing the DLM. |
I honestly dont know enough about IDL and whats happening with the old fit read routines to be able to fix this in a short amount of time. |
I also just noticed this issue and was able to replicate it exactly as Evan describes. I'm running Linux Mint 18 with IDL 8.5.1.
|
So after browsing through the log files due to the sim_real compilation error in the other thread, it seems like this particular issue is due to the use of 'strncpy' in OldFitIDLtoFitFp and OldFitFitFpToIDL (Lines 53 and 73 of oldfitdlm.c): In file included from /usr/include/string.h:640:0, |
Changing lines 53 and 73 of
to
takes care of the buffer overflow issue, but nonsense values still creep into the other parameters in that structure when you actually try using the oldfitread dlm in IDL. So more work is needed to get this functional again. |
I first ran into this issue several years ago at VT (~2012) and now again at Dartmouth after making a fresh installation of VTRST3.5 from github. Calling the IDL routine OldFitOpen on a .fit file results in a buffer overflow immediately after it loads oldfitdlm, however if you explicitly use the IDL function and not the DLM then everything works normally. Similarly, using the IDL routine to open a .fit file and then trying to use the DLM to read the file (via OldFitRead) fails with a returned value of -1. Can anyone else replicate this issue?
(for reference I'm running IDL Version 8.4 on Ubuntu 14.04.4 LTS)
The text was updated successfully, but these errors were encountered: