Comments (6)
Probably later. You might have a chat with Keith in Fairbanks -- he has
played around with re-compiling VTRST3.5.
See you there!
Cheers,
Pasha
On 26/05/2016 12:40 PM, egthomas wrote:
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)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#15
Dr Pavlo (Pasha) Ponomarenko
Professional Research Associate
Institute of Space and Atmospheric Studies
University of Saskatchewan
Mailing address:
Physics building
116 Science Place,
Saskatoon, SK, S7N 5E2
CANADA
Phone +1 306 966-6458
Facsimile +1 306 966-6440
Email [email protected]
WWW www.usask.ca/~pasha.ponomarenko
ORCID ID: 0000-0001-8407-0193
The opposite of skeptic is gullible.
I think it’s much more interesting to live
not knowing, than to have answers which
might be wrong.
Richard Feynman
The object of life is not to be on the side
of the majority, but to escape finding oneself
in the ranks of the insane.
Marcus Aurelius Augustus
from vtrst3.5.
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.
from vtrst3.5.
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.
from vtrst3.5.
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.
- Emma
from vtrst3.5.
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,
from oldfitdlm.c:14:
In function ‘strncpy’,
inlined from ‘OldFitIDLToFitFp’ at oldfitdlm.c:53:10:
/usr/include/x86_64-linux-gnu/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
^
In function ‘strncpy’,
inlined from ‘OldFitFitFpToIDL’ at oldfitdlm.c:73:10:
/usr/include/x86_64-linux-gnu/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
^
from vtrst3.5.
Changing lines 53 and 73 of rst/codebase/superdarn/src.dlm/oldfitdlm.1.7/oldfitdlm.c
from
strncpy(fitfp->date,ifitfp->date,80);
to
strncpy(fitfp->date,ifitfp->date,32);
(to match the size of the date value in the oldfitfp structure)
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.
from vtrst3.5.
Related Issues (9)
- netcdf.h missing
- Compiling failing on makelib.linux rfbuf HOT 15
- Make_grid and scan = -1 issue
- Missing/incorrect configuration during installation can delete files in /bin and /lib HOT 3
- compiling failing at sim_real.1.0 HOT 15
- Twofsound multiple 'channel' data not being processed correctly (example 20161117 CDN data) HOT 23
- Development schedule HOT 4
- This repo has been deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtrst3.5.