Giter Club home page Giter Club logo

Comments (6)

pasha-ponomarenko avatar pasha-ponomarenko commented on August 23, 2024

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.

egthomas avatar egthomas commented on August 23, 2024

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.

kkotyk avatar kkotyk commented on August 23, 2024

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.

ecbland avatar ecbland commented on August 23, 2024

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.

egthomas avatar egthomas commented on August 23, 2024

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.

egthomas avatar egthomas commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.